Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008698/0.0008697, allocations: 88.31 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.155e-05/3.166e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 51.47 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3635/0.4714, allocations: 103.9 MB / 0.4941 GB, free: 1.906 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.4717, allocations: 87.75 kB / 0.4942 GB, free: 1.863 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1083/0.58, allocations: 41.31 MB / 0.5346 GB, free: 9.777 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.58, allocations: 0 / 0.5346 GB, free: 9.777 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001583/0.5802, allocations: 51.94 kB / 0.5346 GB, free: 9.727 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.003779/0.584, allocations: 2.004 MB / 0.5366 GB, free: 7.676 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.5841, allocations: 8.031 kB / 0.5366 GB, free: 7.668 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003622/0.5844, allocations: 261.8 kB / 0.5368 GB, free: 7.402 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009533/0.5854, allocations: 301.1 kB / 0.5371 GB, free: 7.105 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002768/0.5882, allocations: 1.408 MB / 0.5385 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.5883, allocations: 143.5 kB / 0.5386 GB, free: 5.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003215/0.5886, allocations: 183.9 kB / 0.5388 GB, free: 5.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004184/0.5928, allocations: 2.314 MB / 0.5411 GB, free: 2.922 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-05/0.5929, allocations: 19.81 kB / 0.5411 GB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.5931, allocations: 83.92 kB / 0.5412 GB, free: 2.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-05/0.5932, allocations: 83.5 kB / 0.5413 GB, free: 2.738 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002978/0.5962, allocations: 1.833 MB / 0.543 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.6078, allocations: 7.491 MB / 0.5504 GB, free: 9.207 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.6096, allocations: 1.284 MB / 0.5516 GB, free: 7.844 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.6109, allocations: 0.8145 MB / 0.5524 GB, free: 7.023 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000283/0.6112, allocations: 137.8 kB / 0.5525 GB, free: 6.871 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.6112, allocations: 51.27 kB / 0.5526 GB, free: 6.812 MB / 426.7 MB Notification: Performance of pre-optimization done (n=87): time 2.555e-06/0.6113, allocations: 0 / 0.5526 GB, free: 6.812 MB / 426.7 MB Notification: Performance of matching and sorting (n=103): time 0.007484/0.6187, allocations: 4.1 MB / 0.5566 GB, free: 2.656 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.6188, allocations: 64.41 kB / 0.5567 GB, free: 2.582 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.6205, allocations: 1.18 MB / 0.5578 GB, free: 1.387 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.404e-05/0.6206, allocations: 41.7 kB / 0.5578 GB, free: 1.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005552/0.6211, allocations: 0.9009 MB / 0.5587 GB, free: 436 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.6214, allocations: 362.8 kB / 0.5591 GB, free: 68 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.6215, allocations: 24 kB / 0.5591 GB, free: 44 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.6216, allocations: 349.9 kB / 0.5594 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008269/0.6224, allocations: 0.6078 MB / 0.56 GB, free: 15.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009867/0.6234, allocations: 0.9034 MB / 0.5609 GB, free: 14.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.6245, allocations: 0.7387 MB / 0.5616 GB, free: 13.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.6245, allocations: 4 kB / 0.5616 GB, free: 13.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.004072/0.6286, allocations: 2.39 MB / 0.564 GB, free: 10.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.6286, allocations: 9.406 kB / 0.564 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.6287, allocations: 12 kB / 0.564 GB, free: 10.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.6305, allocations: 0.7745 MB / 0.5647 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008306/0.6314, allocations: 235.6 kB / 0.565 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/0.6419, allocations: 8.559 MB / 0.5733 GB, free: 1.055 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.6433, allocations: 83.77 kB / 0.5734 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.6434, allocations: 51.98 kB / 0.5735 GB, free: 0.9219 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002501/0.6437, allocations: 168.9 kB / 0.5736 GB, free: 0.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.6439, allocations: 142.3 kB / 0.5737 GB, free: 0.6094 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2378/0.8818, allocations: 1.858 MB / 0.5756 GB, free: 96.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.8818, allocations: 10.16 kB / 0.5756 GB, free: 96.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.8818, allocations: 6.859 kB / 0.5756 GB, free: 96.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.8819, allocations: 4.875 kB / 0.5756 GB, free: 96.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006118/0.888, allocations: 3.963 MB / 0.5795 GB, free: 96.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.888, allocations: 3.625 kB / 0.5795 GB, free: 96.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007996/0.8888, allocations: 205 kB / 0.5797 GB, free: 96.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.8899, allocations: 464 kB / 0.5801 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-05/0.89, allocations: 31.88 kB / 0.5801 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004756/0.8948, allocations: 6.165 MB / 0.5861 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.8948, allocations: 5.531 kB / 0.5862 GB, free: 92.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003601/0.8984, allocations: 2.865 MB / 0.5889 GB, free: 92.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006421/0.8991, allocations: 362.1 kB / 0.5893 GB, free: 92.01 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.8992, allocations: 23.12 kB / 0.5893 GB, free: 92.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007143/0.9, allocations: 75.8 kB / 0.5894 GB, free: 92.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.9002, allocations: 85.36 kB / 0.5895 GB, free: 92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.9002, allocations: 33.03 kB / 0.5895 GB, free: 92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001111/0.9014, allocations: 0.9131 MB / 0.5904 GB, free: 91.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9014, allocations: 0 / 0.5904 GB, free: 91.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001362/0.9027, allocations: 473.4 kB / 0.5908 GB, free: 91.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00386/0.9066, allocations: 4.215 MB / 0.595 GB, free: 90.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002741/0.9094, allocations: 1.997 MB / 0.5969 GB, free: 90.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.9094, allocations: 0 / 0.5969 GB, free: 90.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.911, allocations: 1.338 MB / 0.5982 GB, free: 89.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001566/0.9126, allocations: 361.9 kB / 0.5986 GB, free: 89.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005808/0.9184, allocations: 3.828 MB / 0.6023 GB, free: 88.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.9195, allocations: 1.732 MB / 0.604 GB, free: 87.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009813/0.9205, allocations: 319 kB / 0.6043 GB, free: 87.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008125/0.9213, allocations: 0.7064 MB / 0.605 GB, free: 87.89 MB / 442.7 MB Notification: Performance of SimCode: time 9.41e-07/0.9213, allocations: 0 / 0.605 GB, free: 87.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06357/0.9849, allocations: 40.12 MB / 0.6442 GB, free: 85.14 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001295/0.9851, allocations: 197.8 kB / 0.6444 GB, free: 84.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.023/4.009, allocations: 3.875 kB / 0.6444 GB, free: 84.91 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat