Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 94.98 kB / 286.7 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.921e-05/1.929e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.09196, allocations: 51.48 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4087/0.5007, allocations: 130.8 MB / 0.5138 GB, free: 11.03 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.501, allocations: 91.88 kB / 0.5139 GB, free: 10.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6838/1.185, allocations: 152.5 MB / 0.6628 GB, free: 67.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.753e-06/1.185, allocations: 0 / 0.6628 GB, free: 67.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000852/1.186, allocations: 189.8 kB / 0.663 GB, free: 67.66 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02398/1.21, allocations: 6.62 MB / 0.6694 GB, free: 64.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/1.21, allocations: 15.41 kB / 0.6695 GB, free: 64.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007832/1.218, allocations: 1.281 MB / 0.6707 GB, free: 64.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01756/1.235, allocations: 6.277 MB / 0.6768 GB, free: 60.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004898/1.236, allocations: 218.5 kB / 0.677 GB, free: 60.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003181/1.239, allocations: 404.9 kB / 0.6774 GB, free: 60.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01839/1.257, allocations: 7.02 MB / 0.6843 GB, free: 56.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02664/1.284, allocations: 8.174 MB / 0.6923 GB, free: 48.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005351/1.285, allocations: 11.84 kB / 0.6923 GB, free: 48.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002973/1.288, allocations: 8 kB / 0.6923 GB, free: 48.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003476/1.288, allocations: 293.4 kB / 0.6926 GB, free: 48.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04978/1.338, allocations: 28.32 MB / 0.7202 GB, free: 19.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009058/1.347, allocations: 11.88 MB / 0.7318 GB, free: 6.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005094/1.352, allocations: 3.18 MB / 0.7349 GB, free: 3.629 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3113/1.663, allocations: 6.85 MB / 0.7416 GB, free: 62.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.666e-05/1.664, allocations: 68.69 kB / 0.7417 GB, free: 62.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=306): time 8.225e-06/1.664, allocations: 0 / 0.7417 GB, free: 62.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=325): time 0.03488/1.698, allocations: 11.27 MB / 0.7527 GB, free: 61.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/1.699, allocations: 85.22 kB / 0.7528 GB, free: 61.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007808/1.706, allocations: 2.805 MB / 0.7555 GB, free: 60.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009299/1.707, allocations: 25.7 kB / 0.7555 GB, free: 60.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003288/1.711, allocations: 3.091 MB / 0.7586 GB, free: 59.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001705/1.712, allocations: 1.049 MB / 0.7596 GB, free: 59.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/1.713, allocations: 0 / 0.7596 GB, free: 59.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/1.713, allocations: 459.8 kB / 0.76 GB, free: 58.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003717/1.717, allocations: 1.719 MB / 0.7617 GB, free: 58.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004792/1.722, allocations: 2.604 MB / 0.7642 GB, free: 57.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005041/1.727, allocations: 2.336 MB / 0.7665 GB, free: 57.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.356e-05/1.727, allocations: 6.281 kB / 0.7665 GB, free: 57.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01191/1.739, allocations: 5.986 MB / 0.7724 GB, free: 57.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/1.739, allocations: 16.47 kB / 0.7724 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.521e-05/1.739, allocations: 26.62 kB / 0.7724 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002947/1.742, allocations: 1.21 MB / 0.7736 GB, free: 56.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/1.746, allocations: 0.8155 MB / 0.7744 GB, free: 56.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01873/1.765, allocations: 19.84 MB / 0.7938 GB, free: 43.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/1.769, allocations: 132.6 kB / 0.7939 GB, free: 43.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/1.77, allocations: 150.8 kB / 0.794 GB, free: 43.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001459/1.772, allocations: 209.8 kB / 0.7942 GB, free: 43.42 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0119/1.784, allocations: 5.512 MB / 0.7996 GB, free: 42.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001465/1.785, allocations: 406.1 kB / 0.8 GB, free: 41.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/1.796, allocations: 5.832 MB / 0.8057 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-05/1.796, allocations: 30.62 kB / 0.8057 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.855e-05/1.797, allocations: 14.34 kB / 0.8057 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-05/1.797, allocations: 15.56 kB / 0.8058 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0237/1.82, allocations: 11.28 MB / 0.8168 GB, free: 34.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/1.82, allocations: 2.844 kB / 0.8168 GB, free: 34.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00226/1.823, allocations: 467 kB / 0.8172 GB, free: 34.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00374/1.826, allocations: 1.551 MB / 0.8187 GB, free: 34.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007182/1.827, allocations: 28.41 kB / 0.8188 GB, free: 34.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0213/1.848, allocations: 28.96 MB / 0.847 GB, free: 26.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/1.849, allocations: 4.594 kB / 0.847 GB, free: 26.15 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/1.862, allocations: 8.708 MB / 0.8556 GB, free: 21.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002958/1.865, allocations: 0.8697 MB / 0.8564 GB, free: 21.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001372/1.866, allocations: 21.75 kB / 0.8564 GB, free: 21.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003069/1.869, allocations: 149.3 kB / 0.8566 GB, free: 21.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007694/1.87, allocations: 279.2 kB / 0.8568 GB, free: 21.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002686/1.87, allocations: 94.58 kB / 0.8569 GB, free: 21.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00403/1.874, allocations: 2.083 MB / 0.859 GB, free: 20.56 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.874, allocations: 3.531 kB / 0.859 GB, free: 20.56 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00675/1.881, allocations: 1.219 MB / 0.8602 GB, free: 20.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01439/1.895, allocations: 10.34 MB / 0.8702 GB, free: 15.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00894/1.904, allocations: 5.88 MB / 0.876 GB, free: 10.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/1.904, allocations: 4 kB / 0.876 GB, free: 10.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007707/1.912, allocations: 4.5 MB / 0.8804 GB, free: 5.754 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006382/1.919, allocations: 0.965 MB / 0.8813 GB, free: 5.016 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02936/1.948, allocations: 12.59 MB / 0.8936 GB, free: 10.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008883/1.957, allocations: 4.623 MB / 0.8981 GB, free: 6.668 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005139/1.962, allocations: 0.9747 MB / 0.8991 GB, free: 6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005592/1.968, allocations: 2.664 MB / 0.9017 GB, free: 3.527 MB / 474.7 MB Notification: Performance of SimCode: time 2.064e-06/1.968, allocations: 0 / 0.9017 GB, free: 3.527 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5119/2.48, allocations: 105.1 MB / 1.004 GB, free: 57.92 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/2.48, allocations: 180.4 kB / 1.004 GB, free: 57.73 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.329/7.809, allocations: 0 / 1.004 GB, free: 57.73 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat