Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.001594/0.001594, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.211/2.211, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001081/0.00108, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.644e-05/3.655e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4802/0.5821, allocations: 109.6 MB / 478.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004203/0.5826, allocations: 90.19 kB / 478.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6601/1.243, allocations: 80.54 MB / 0.5463 GB, free: 89.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.925e-06/1.243, allocations: 1.156 kB / 0.5463 GB, free: 89.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000571/1.243, allocations: 81.28 kB / 0.5464 GB, free: 89.61 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.02215/1.266, allocations: 3.21 MB / 0.5495 GB, free: 88.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.883e-05/1.266, allocations: 10.09 kB / 0.5495 GB, free: 88.4 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002815/1.268, allocations: 456.5 kB / 0.5499 GB, free: 88.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/1.279, allocations: 0.7365 MB / 0.5507 GB, free: 88.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01965/1.299, allocations: 3.305 MB / 0.5539 GB, free: 87.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005109/1.3, allocations: 244.3 kB / 0.5541 GB, free: 87.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001955/1.301, allocations: 323.9 kB / 0.5544 GB, free: 87.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02082/1.322, allocations: 4.137 MB / 0.5585 GB, free: 87.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002637/1.323, allocations: 6.953 kB / 0.5585 GB, free: 87.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001523/1.324, allocations: 136.4 kB / 0.5586 GB, free: 87.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002906/1.325, allocations: 152.4 kB / 0.5587 GB, free: 87.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/1.342, allocations: 3.338 MB / 0.562 GB, free: 87.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.057/1.399, allocations: 13.91 MB / 0.5756 GB, free: 80.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/1.414, allocations: 6.602 MB / 0.582 GB, free: 75.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005522/1.42, allocations: 1.36 MB / 0.5834 GB, free: 74.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01712/1.437, allocations: 3.8 MB / 0.5871 GB, free: 72.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.156e-05/1.437, allocations: 53.5 kB / 0.5871 GB, free: 72.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=144): time 8.436e-06/1.437, allocations: 0 / 0.5871 GB, free: 72.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.01874/1.456, allocations: 4.336 MB / 0.5914 GB, free: 70.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/1.456, allocations: 70.75 kB / 0.5914 GB, free: 70.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005147/1.461, allocations: 1.519 MB / 0.5929 GB, free: 69.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004459/1.462, allocations: 53.61 kB / 0.593 GB, free: 69.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/1.463, allocations: 1.353 MB / 0.5943 GB, free: 68.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009005/1.464, allocations: 0.5032 MB / 0.5948 GB, free: 67.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/1.464, allocations: 34.72 kB / 0.5948 GB, free: 67.85 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/1.464, allocations: 384.4 kB / 0.5952 GB, free: 67.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/1.467, allocations: 0.6701 MB / 0.5958 GB, free: 67.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003272/1.471, allocations: 1.129 MB / 0.5969 GB, free: 66.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00344/1.474, allocations: 0.8961 MB / 0.5978 GB, free: 66.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-05/1.474, allocations: 6.125 kB / 0.5978 GB, free: 66.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01007/1.484, allocations: 2.389 MB / 0.6001 GB, free: 64.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/1.484, allocations: 11.44 kB / 0.6002 GB, free: 64.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.164e-05/1.484, allocations: 16.84 kB / 0.6002 GB, free: 64.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/1.487, allocations: 376.9 kB / 0.6005 GB, free: 64.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004728/1.492, allocations: 392.9 kB / 0.6009 GB, free: 64.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/1.502, allocations: 7.842 MB / 0.6086 GB, free: 58.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00242/1.504, allocations: 80.39 kB / 0.6086 GB, free: 58.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/1.504, allocations: 78.05 kB / 0.6087 GB, free: 58.08 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004709/1.505, allocations: 208.4 kB / 0.6089 GB, free: 57.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005405/1.506, allocations: 191.4 kB / 0.6091 GB, free: 57.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006104/1.512, allocations: 2.356 MB / 0.6114 GB, free: 56.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/1.512, allocations: 14.19 kB / 0.6114 GB, free: 56.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/1.512, allocations: 6.875 kB / 0.6114 GB, free: 56.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/1.512, allocations: 7.078 kB / 0.6114 GB, free: 56.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/1.525, allocations: 5.179 MB / 0.6165 GB, free: 54.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/1.525, allocations: 3.875 kB / 0.6165 GB, free: 54.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/1.527, allocations: 204.1 kB / 0.6167 GB, free: 53.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/1.529, allocations: 0.5412 MB / 0.6172 GB, free: 53.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002992/1.53, allocations: 46.31 kB / 0.6172 GB, free: 53.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/1.545, allocations: 12.22 MB / 0.6292 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/1.545, allocations: 4.031 kB / 0.6292 GB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007733/1.553, allocations: 3.392 MB / 0.6325 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/1.554, allocations: 435.3 kB / 0.6329 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006501/1.555, allocations: 39.56 kB / 0.6329 GB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/1.557, allocations: 70.81 kB / 0.633 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004626/1.557, allocations: 118.4 kB / 0.6331 GB, free: 37.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/1.557, allocations: 47.41 kB / 0.6332 GB, free: 37.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002548/1.56, allocations: 1.168 MB / 0.6343 GB, free: 36.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.56, allocations: 0 / 0.6343 GB, free: 36.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003585/1.564, allocations: 0.6212 MB / 0.6349 GB, free: 35.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(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.008986/1.573, allocations: 4.624 MB / 0.6394 GB, free: 31.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005384/1.578, allocations: 2.359 MB / 0.6417 GB, free: 28.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.578, allocations: 0 / 0.6417 GB, free: 28.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003954/1.582, allocations: 1.772 MB / 0.6435 GB, free: 27.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00427/1.586, allocations: 0.5013 MB / 0.644 GB, free: 26.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/1.604, allocations: 5.558 MB / 0.6494 GB, free: 21.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002825/1.606, allocations: 2.321 MB / 0.6517 GB, free: 20.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002536/1.609, allocations: 1.152 MB / 0.6528 GB, free: 19.06 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/1.609, allocations: 3.938 kB / 0.6528 GB, free: 19.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.496/6.105, allocations: 138.9 MB / 0.7884 GB, free: 43.63 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat