Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009404/0.0009405, allocations: 86.14 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 185.6 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.3 MB / 241.2 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002549, allocations: 6.969 kB / 300.9 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1057, allocations: 50.43 MB / 351.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.02127/0.127, allocations: 20.9 MB / 372.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.1398, allocations: 6.526 MB / 378.8 MB, free: 16 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004266/0.1441, allocations: 143.4 kB / 378.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003865/0.148, allocations: 1.207 MB / 380.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006308/0.1543, allocations: 2.016 MB / 382.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002764/0.1571, allocations: 0.92 MB / 383.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01108/0.1682, allocations: 8.989 MB / 392.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007251/0.1755, allocations: 4.973 MB / 397 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005238/0.1807, allocations: 2.86 MB / 399.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006357/0.1871, allocations: 3.731 MB / 403.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001593/0.1887, allocations: 456 kB / 404.1 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.1917, allocations: 0.6872 MB / 404.8 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002016/0.1938, allocations: 1.931 MB / 406.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002796/0.1966, allocations: 1.572 MB / 408.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01449/0.2111, allocations: 11.78 MB / 420 MB, free: 6.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2111, allocations: 0 / 420 MB, free: 6.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.841e-06/0.2111, allocations: 0 / 420 MB, free: 6.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004472/0.2116, allocations: 3.938 kB / 420 MB, free: 6.574 MB / 350.1 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.4289/0.6405, allocations: 7.562 MB / 427.6 MB, free: 28.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.6405, allocations: 9.875 kB / 427.6 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003277/0.6438, allocations: 0.9229 MB / 428.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006029/0.6499, allocations: 1.309 MB / 429.8 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/0.6629, allocations: 5.115 MB / 435 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006107/0.6635, allocations: 0.496 MB / 435.4 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002033/0.6656, allocations: 0.6645 MB / 436.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02008/0.6857, allocations: 9.417 MB / 445.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001667/0.6859, allocations: 6.625 kB / 445.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007641/0.6867, allocations: 283.5 kB / 445.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003113/0.687, allocations: 299 kB / 446.1 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01541/0.7024, allocations: 8.061 MB / 454.2 MB, free: 26.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05187/0.7543, allocations: 29.47 MB / 483.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01355/0.7679, allocations: 11.96 MB / 495.6 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007084/0.775, allocations: 3.402 MB / 499 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01858/0.7937, allocations: 7.994 MB / 0.4951 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001024/0.7938, allocations: 72.92 kB / 0.4952 GB, free: 7.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 6.572e-06/0.7938, allocations: 0 / 0.4952 GB, free: 7.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.03657/0.8304, allocations: 16.04 MB / 0.5108 GB, free: 6.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.8305, allocations: 85.95 kB / 0.5109 GB, free: 6.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009317/0.8399, allocations: 3.961 MB / 0.5148 GB, free: 2.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007798/0.8407, allocations: 85.7 kB / 0.5149 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002899/0.8436, allocations: 3.084 MB / 0.5179 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001609/0.8452, allocations: 1.085 MB / 0.5189 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.8455, allocations: 76 kB / 0.519 GB, free: 14.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002741/0.8458, allocations: 462.1 kB / 0.5195 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002993/0.8488, allocations: 1.862 MB / 0.5213 GB, free: 11.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0037/0.8525, allocations: 2.84 MB / 0.5241 GB, free: 8.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00522/0.8577, allocations: 2.285 MB / 0.5263 GB, free: 6.297 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.663e-05/0.8578, allocations: 8 kB / 0.5263 GB, free: 6.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01756/0.8754, allocations: 6.399 MB / 0.5325 GB, free: 15.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.689e-05/0.8755, allocations: 18.19 kB / 0.5326 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.585e-05/0.8755, allocations: 32 kB / 0.5326 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005715/0.8813, allocations: 1.257 MB / 0.5338 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006362/0.8877, allocations: 0.818 MB / 0.5346 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03367/0.9214, allocations: 20.73 MB / 0.5549 GB, free: 7.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006315/0.9277, allocations: 199.9 kB / 0.5551 GB, free: 7.574 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001228/0.929, allocations: 152 kB / 0.5552 GB, free: 7.426 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (424): * Single equations (assignments): 410 * 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 {(1,100.0%) 8,(2,100.0%) 14,(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.008123/0.9372, allocations: 2.193 MB / 0.5573 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002073/0.9393, allocations: 446.6 kB / 0.5578 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/0.9534, allocations: 6.038 MB / 0.5637 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/0.9535, allocations: 36 kB / 0.5637 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.241e-05/0.9536, allocations: 16 kB / 0.5637 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-05/0.9537, allocations: 19.92 kB / 0.5637 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02484/0.9785, allocations: 12.32 MB / 0.5758 GB, free: 2.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/0.9786, allocations: 5.312 kB / 0.5758 GB, free: 2.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/0.9806, allocations: 460.6 kB / 0.5762 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/0.9845, allocations: 1.617 MB / 0.5778 GB, free: 52 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004468/0.985, allocations: 72.64 kB / 0.5779 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2549/1.24, allocations: 30.18 MB / 0.6073 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/1.24, allocations: 5.812 kB / 0.6073 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/1.256, allocations: 8.641 MB / 0.6158 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002692/1.258, allocations: 0.9064 MB / 0.6167 GB, free: 149.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007962/1.259, allocations: 71.59 kB / 0.6167 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/1.261, allocations: 195.4 kB / 0.6169 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006745/1.262, allocations: 283.5 kB / 0.6172 GB, free: 149.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.262, allocations: 83.09 kB / 0.6173 GB, free: 149.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003925/1.266, allocations: 2.688 MB / 0.6199 GB, free: 148.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.266, allocations: 0 / 0.6199 GB, free: 148.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004778/1.27, allocations: 1.333 MB / 0.6212 GB, free: 148.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * 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%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01194/1.282, allocations: 9.355 MB / 0.6303 GB, free: 144.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007909/1.29, allocations: 6.309 MB / 0.6365 GB, free: 140.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/1.29, allocations: 4.734 kB / 0.6365 GB, free: 140.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005395/1.296, allocations: 4.795 MB / 0.6412 GB, free: 137.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005382/1.301, allocations: 1.286 MB / 0.6424 GB, free: 136.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07549/1.377, allocations: 43.05 MB / 0.6845 GB, free: 92.22 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004035/1.381, allocations: 4.49 MB / 0.6889 GB, free: 87.69 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003554/1.384, allocations: 1.046 MB / 0.6899 GB, free: 86.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002875/1.387, allocations: 2.659 MB / 0.6925 GB, free: 83.98 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/1.387, allocations: 0 / 0.6925 GB, free: 83.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.384/1.771, allocations: 117 MB / 0.8067 GB, free: 132.1 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/1.772, allocations: 250.7 kB / 0.8069 GB, free: 131.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.871/6.642, allocations: 0 / 0.8069 GB, free: 131.8 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat