Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002262/0.002262, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.049/2.049, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001215/0.001214, allocations: 93.23 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003948, allocations: 12 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3331, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02763/0.3608, allocations: 18.87 MB / 393.5 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01746/0.3784, allocations: 6.786 MB / 400.3 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005247/0.3837, allocations: 123.4 kB / 400.4 MB, free: 23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005642/0.3893, allocations: 1.263 MB / 401.7 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009717/0.3991, allocations: 2.061 MB / 403.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004751/0.4039, allocations: 0.946 MB / 404.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01247/0.4164, allocations: 5.765 MB / 410.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009715/0.4262, allocations: 4.849 MB / 415.3 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00533/0.4315, allocations: 2.733 MB / 418 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006684/0.4383, allocations: 3.299 MB / 421.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002277/0.4406, allocations: 460 kB / 421.8 MB, free: 1.535 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004052/0.4447, allocations: 0.6676 MB / 422.4 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003855/0.4486, allocations: 1.834 MB / 424.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004009/0.4526, allocations: 1.576 MB / 425.8 MB, free: 13.44 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02069/0.4734, allocations: 11.69 MB / 437.5 MB, free: 1.723 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4734, allocations: 0 / 437.5 MB, free: 1.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4734, allocations: 0 / 437.5 MB, free: 1.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004852/0.4739, allocations: 4 kB / 437.5 MB, free: 1.719 MB / 314.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.03076/0.5047, allocations: 7.52 MB / 445.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.136e-05/0.5048, allocations: 8.031 kB / 445.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003984/0.5088, allocations: 0.9255 MB / 446 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.5191, allocations: 1.314 MB / 447.3 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01783/0.537, allocations: 4.885 MB / 452.2 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009096/0.538, allocations: 0.5054 MB / 452.7 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002962/0.541, allocations: 0.6562 MB / 453.4 MB, free: 1.723 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0339/0.5749, allocations: 9.348 MB / 462.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003715/0.5753, allocations: 15.83 kB / 462.7 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002234/0.5776, allocations: 276 kB / 463 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004746/0.5781, allocations: 313.3 kB / 463.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02939/0.6075, allocations: 8.044 MB / 471.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08752/0.6951, allocations: 29.52 MB / 0.4891 GB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5582/1.253, allocations: 11.97 MB / 0.5008 GB, free: 89.72 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02569/1.279, allocations: 6.882 MB / 0.5075 GB, free: 86.57 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.75e-05/1.279, allocations: 66.64 kB / 0.5076 GB, free: 86.51 MB / 378.8 MB Notification: Performance of pre-optimization done (n=316): time 6.823e-06/1.279, allocations: 0 / 0.5076 GB, free: 86.51 MB / 378.8 MB Notification: Performance of matching and sorting (n=335): time 0.06172/1.341, allocations: 16.46 MB / 0.5237 GB, free: 77.91 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.785e-05/1.341, allocations: 86.05 kB / 0.5237 GB, free: 77.81 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009533/1.351, allocations: 3.922 MB / 0.5276 GB, free: 73.87 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007625/1.352, allocations: 81.7 kB / 0.5276 GB, free: 73.78 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.354, allocations: 2.838 MB / 0.5304 GB, free: 70.93 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00167/1.356, allocations: 1.127 MB / 0.5315 GB, free: 69.81 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004232/1.356, allocations: 76 kB / 0.5316 GB, free: 69.74 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002956/1.357, allocations: 479.1 kB / 0.532 GB, free: 69.26 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005333/1.362, allocations: 1.905 MB / 0.5339 GB, free: 67.36 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006233/1.368, allocations: 2.857 MB / 0.5367 GB, free: 64.11 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006506/1.375, allocations: 2.354 MB / 0.539 GB, free: 61.74 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.324e-05/1.375, allocations: 8 kB / 0.539 GB, free: 61.73 MB / 378.8 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.01809/1.393, allocations: 6.232 MB / 0.5451 GB, free: 55.39 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/1.393, allocations: 16 kB / 0.5451 GB, free: 55.37 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.654e-05/1.393, allocations: 28 kB / 0.5451 GB, free: 55.34 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004951/1.398, allocations: 1.279 MB / 0.5464 GB, free: 54.02 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006526/1.405, allocations: 0.8385 MB / 0.5472 GB, free: 53.18 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02564/1.431, allocations: 21.19 MB / 0.5679 GB, free: 30.54 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00507/1.436, allocations: 215.8 kB / 0.5681 GB, free: 30.33 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008247/1.437, allocations: 156 kB / 0.5682 GB, free: 30.18 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (432): * Single equations (assignments): 418 * 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%) 1,(2,100.0%) 14,(1,100.0%) 8,(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.00599/1.443, allocations: 2.185 MB / 0.5704 GB, free: 27.99 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/1.444, allocations: 446.6 kB / 0.5708 GB, free: 27.55 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/1.46, allocations: 6.213 MB / 0.5769 GB, free: 21.16 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.5e-05/1.46, allocations: 34.53 kB / 0.5769 GB, free: 21.13 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.455e-05/1.461, allocations: 16 kB / 0.5769 GB, free: 21.11 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.303e-05/1.461, allocations: 15.94 kB / 0.5769 GB, free: 21.1 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03132/1.492, allocations: 12.58 MB / 0.5892 GB, free: 8.305 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.996e-05/1.492, allocations: 4 kB / 0.5892 GB, free: 8.301 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004088/1.496, allocations: 483.7 kB / 0.5897 GB, free: 7.828 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006556/1.503, allocations: 1.618 MB / 0.5913 GB, free: 6.156 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005636/1.503, allocations: 83.91 kB / 0.5913 GB, free: 6.074 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04516/1.548, allocations: 30.77 MB / 0.6214 GB, free: 5.207 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.435e-05/1.549, allocations: 11.89 kB / 0.6214 GB, free: 5.195 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02649/1.575, allocations: 9.216 MB / 0.6304 GB, free: 11.61 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003757/1.579, allocations: 0.9212 MB / 0.6313 GB, free: 10.67 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001433/1.58, allocations: 71.98 kB / 0.6314 GB, free: 10.6 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00459/1.585, allocations: 215.8 kB / 0.6316 GB, free: 10.39 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00145/1.586, allocations: 274.1 kB / 0.6318 GB, free: 10.12 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004376/1.587, allocations: 87.98 kB / 0.6319 GB, free: 10.03 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.007735/1.595, allocations: 2.654 MB / 0.6345 GB, free: 7.371 MB / 426.8 MB Notification: Performance of sort global known variables: time 6.62e-07/1.595, allocations: 3.938 kB / 0.6345 GB, free: 7.367 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007972/1.603, allocations: 1.342 MB / 0.6358 GB, free: 6.027 MB / 426.8 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 (242): * Single equations (assignments): 225 * 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%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(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.02857/1.631, allocations: 10.56 MB / 0.6461 GB, free: 11.18 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01755/1.649, allocations: 6.447 MB / 0.6524 GB, free: 4.508 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/1.649, allocations: 4 kB / 0.6524 GB, free: 4.504 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.299/1.948, allocations: 4.874 MB / 0.6572 GB, free: 149 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009145/1.957, allocations: 1.233 MB / 0.6584 GB, free: 148.9 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1313/2.089, allocations: 61.69 MB / 0.7186 GB, free: 103.7 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007954/2.097, allocations: 4.528 MB / 0.7231 GB, free: 99.16 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005963/2.103, allocations: 2.698 MB / 0.7257 GB, free: 96.46 MB / 442.8 MB Notification: Performance of SimCode: time 1.423e-06/2.103, allocations: 0 / 0.7257 GB, free: 96.46 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.587/9.689, allocations: 0.6194 GB / 1.345 GB, free: 137.1 MB / 458.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat