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_DOL_MultiPhase.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_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",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.002056/0.002056, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.158/2.158, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 95.09 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.965e-05/2.96e-05, allocations: 7.984 kB / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3421, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1895/0.5316, allocations: 111.2 MB / 473.6 MB, free: 7.039 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004638/0.5322, allocations: 79.95 kB / 473.7 MB, free: 6.961 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.998/1.53, allocations: 180.4 MB / 0.6388 GB, free: 1.098 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.224e-06/1.53, allocations: 0 / 0.6388 GB, free: 1.098 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0008257/1.531, allocations: 195.8 kB / 0.639 GB, free: 0.9062 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03726/1.568, allocations: 7.613 MB / 0.6464 GB, free: 9.203 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/1.568, allocations: 12.03 kB / 0.6465 GB, free: 9.191 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0159/1.584, allocations: 1.82 MB / 0.6482 GB, free: 7.359 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02758/1.612, allocations: 6.943 MB / 0.655 GB, free: 352 kB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006735/1.613, allocations: 260 kB / 0.6553 GB, free: 92 kB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.6709/2.284, allocations: 482.8 kB / 0.6557 GB, free: 35.35 MB / 411.2 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02752/2.311, allocations: 8.511 MB / 0.664 GB, free: 35.31 MB / 411.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0357/2.347, allocations: 9.611 MB / 0.6734 GB, free: 34.52 MB / 411.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005607/2.348, allocations: 7.875 kB / 0.6734 GB, free: 34.52 MB / 411.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003051/2.351, allocations: 5.5 kB / 0.6734 GB, free: 34.52 MB / 411.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004912/2.351, allocations: 372.7 kB / 0.6738 GB, free: 34.5 MB / 411.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09486/2.446, allocations: 32.98 MB / 0.706 GB, free: 28.82 MB / 411.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0278/2.474, allocations: 19.47 MB / 0.725 GB, free: 14.28 MB / 411.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009222/2.483, allocations: 3.464 MB / 0.7284 GB, free: 13 MB / 411.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03194/2.515, allocations: 9.132 MB / 0.7373 GB, free: 8.559 MB / 411.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.77e-05/2.515, allocations: 72.61 kB / 0.7374 GB, free: 8.492 MB / 411.2 MB Notification: Performance of pre-optimization done (n=315): time 7.164e-06/2.515, allocations: 0 / 0.7374 GB, free: 8.492 MB / 411.2 MB Notification: Performance of matching and sorting (n=321): time 0.03604/2.551, allocations: 10.42 MB / 0.7476 GB, free: 3.965 MB / 411.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/2.552, allocations: 83.44 kB / 0.7476 GB, free: 3.898 MB / 411.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008967/2.561, allocations: 3.144 MB / 0.7507 GB, free: 2.715 MB / 411.2 MB Notification: Performance of collectPreVariables (initialization): time 0.0007938/2.561, allocations: 25.7 kB / 0.7507 GB, free: 2.684 MB / 411.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.002966/2.564, allocations: 3.337 MB / 0.754 GB, free: 104 kB / 411.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.002008/2.566, allocations: 1.04 MB / 0.755 GB, free: 15.28 MB / 427.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004099/2.567, allocations: 0 / 0.755 GB, free: 15.28 MB / 427.2 MB Notification: Performance of setup shared object (initialization): time 0.0004179/2.567, allocations: 467.3 kB / 0.7554 GB, free: 14.9 MB / 427.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00455/2.572, allocations: 1.604 MB / 0.757 GB, free: 14.23 MB / 427.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006024/2.578, allocations: 2.621 MB / 0.7596 GB, free: 12.32 MB / 427.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007944/2.586, allocations: 2.402 MB / 0.7619 GB, free: 11.42 MB / 427.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-05/2.586, allocations: 7.188 kB / 0.7619 GB, free: 11.42 MB / 427.2 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01855/2.605, allocations: 5.368 MB / 0.7672 GB, free: 9.473 MB / 427.2 MB Notification: Performance of prepare postOptimizeDAE: time 5.111e-05/2.605, allocations: 19.59 kB / 0.7672 GB, free: 9.473 MB / 427.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.547e-05/2.605, allocations: 35.06 kB / 0.7672 GB, free: 9.473 MB / 427.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003418/2.608, allocations: 0.7775 MB / 0.768 GB, free: 9.215 MB / 427.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006524/2.615, allocations: 0.8033 MB / 0.7688 GB, free: 9.191 MB / 427.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02205/2.637, allocations: 14.27 MB / 0.7827 GB, free: 13.79 MB / 443.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005515/2.643, allocations: 109.8 kB / 0.7828 GB, free: 13.78 MB / 443.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/2.644, allocations: 158.2 kB / 0.783 GB, free: 13.75 MB / 443.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (427): * 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): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 7 {(1,100.0%) 5,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009945/2.645, allocations: 221 kB / 0.7832 GB, free: 13.61 MB / 443.2 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01629/2.661, allocations: 5.047 MB / 0.7881 GB, free: 11.55 MB / 443.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001928/2.663, allocations: 406 kB / 0.7885 GB, free: 11.34 MB / 443.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01896/2.682, allocations: 5.369 MB / 0.7937 GB, free: 6.898 MB / 443.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-05/2.682, allocations: 32 kB / 0.7938 GB, free: 6.867 MB / 443.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.417e-05/2.682, allocations: 22.44 kB / 0.7938 GB, free: 6.848 MB / 443.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-05/2.682, allocations: 23.61 kB / 0.7938 GB, free: 6.844 MB / 443.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04488/2.727, allocations: 11.66 MB / 0.8052 GB, free: 14.73 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.862e-05/2.727, allocations: 4 kB / 0.8052 GB, free: 14.73 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003675/2.731, allocations: 380 kB / 0.8056 GB, free: 14.44 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006684/2.738, allocations: 1.338 MB / 0.8069 GB, free: 13.33 MB / 459.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008296/2.739, allocations: 48.42 kB / 0.8069 GB, free: 13.29 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3964/3.135, allocations: 23.1 MB / 0.8295 GB, free: 68.46 MB / 459.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/3.135, allocations: 10.03 kB / 0.8295 GB, free: 68.46 MB / 459.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02124/3.156, allocations: 8.123 MB / 0.8374 GB, free: 67.25 MB / 459.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003816/3.16, allocations: 0.893 MB / 0.8383 GB, free: 67.15 MB / 459.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001787/3.162, allocations: 28.94 kB / 0.8383 GB, free: 67.15 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005123/3.167, allocations: 137.7 kB / 0.8384 GB, free: 67.15 MB / 459.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001714/3.169, allocations: 324.6 kB / 0.8387 GB, free: 67.14 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009146/3.17, allocations: 89.06 kB / 0.8388 GB, free: 67.14 MB / 459.2 MB Notification: Performance of sorting global known variables: time 0.007417/3.177, allocations: 2.344 MB / 0.8411 GB, free: 67 MB / 459.2 MB Notification: Performance of sort global known variables: time 7.11e-07/3.178, allocations: 5.344 kB / 0.8411 GB, free: 67 MB / 459.2 MB Notification: Performance of remove unused functions: time 0.01012/3.188, allocations: 1.298 MB / 0.8424 GB, free: 67 MB / 459.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02459/3.212, allocations: 9.866 MB / 0.852 GB, free: 64.37 MB / 459.2 MB Notification: Performance of simCode: created initialization part: time 0.01338/3.226, allocations: 5.105 MB / 0.857 GB, free: 63.37 MB / 459.2 MB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/3.226, allocations: 3.438 kB / 0.857 GB, free: 63.37 MB / 459.2 MB Notification: Performance of simCode: created simulation system equations: time 0.009504/3.235, allocations: 3.797 MB / 0.8607 GB, free: 62.35 MB / 459.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008026/3.243, allocations: 0.8462 MB / 0.8615 GB, free: 62.33 MB / 459.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04864/3.292, allocations: 13.52 MB / 0.8748 GB, free: 59.58 MB / 459.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01151/3.304, allocations: 5.118 MB / 0.8797 GB, free: 58.68 MB / 459.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007941/3.312, allocations: 3.041 MB / 0.8827 GB, free: 58.68 MB / 459.2 MB Notification: Performance of SimCode: time 1.392e-06/3.312, allocations: 0 / 0.8827 GB, free: 58.68 MB / 459.2 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.945/10.26, allocations: 484.3 MB / 1.356 GB, free: 102.4 MB / 491.2 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.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_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat