Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_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.001449/0.001449, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.873/1.873, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001089/0.001088, allocations: 94.03 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3089, allocations: 47.55 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1766/0.4855, allocations: 113.4 MB / 488 MB, free: 15.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003378/0.4859, allocations: 91.94 kB / 488.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7726/1.259, allocations: 159.3 MB / 0.6323 GB, free: 12.94 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.259, allocations: 0 / 0.6323 GB, free: 12.94 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006354/1.259, allocations: 163.8 kB / 0.6324 GB, free: 12.78 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03086/1.29, allocations: 7.003 MB / 0.6393 GB, free: 5.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/1.29, allocations: 12.03 kB / 0.6393 GB, free: 5.668 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003796/1.294, allocations: 0.9665 MB / 0.6402 GB, free: 4.688 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01254/1.307, allocations: 1.517 MB / 0.6417 GB, free: 3.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5915/1.898, allocations: 5.775 MB / 0.6473 GB, free: 35.53 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005783/1.899, allocations: 0.516 MB / 0.6478 GB, free: 35.52 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002651/1.901, allocations: 0.6849 MB / 0.6485 GB, free: 35.52 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02881/1.93, allocations: 9.214 MB / 0.6575 GB, free: 34.79 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003314/1.931, allocations: 7.688 kB / 0.6575 GB, free: 34.79 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001747/1.932, allocations: 293.8 kB / 0.6578 GB, free: 34.79 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003449/1.933, allocations: 324.6 kB / 0.6581 GB, free: 34.77 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02314/1.956, allocations: 7.57 MB / 0.6655 GB, free: 34.71 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07223/2.028, allocations: 28.87 MB / 0.6937 GB, free: 30.04 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02198/2.05, allocations: 16.61 MB / 0.7099 GB, free: 15.77 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01663/2.067, allocations: 6.635 MB / 0.7164 GB, free: 12.31 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/2.067, allocations: 66.19 kB / 0.7164 GB, free: 12.25 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 5.17e-06/2.067, allocations: 0 / 0.7164 GB, free: 12.25 MB / 410.8 MB Notification: Performance of matching and sorting (n=289): time 0.04056/2.107, allocations: 12.02 MB / 0.7282 GB, free: 6.707 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/2.108, allocations: 83 kB / 0.7283 GB, free: 6.641 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006614/2.114, allocations: 2.925 MB / 0.7311 GB, free: 5.535 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005835/2.115, allocations: 73.05 kB / 0.7312 GB, free: 5.469 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001987/2.117, allocations: 2.811 MB / 0.7339 GB, free: 3.242 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/2.118, allocations: 0.9839 MB / 0.7349 GB, free: 2.477 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004103/2.119, allocations: 71.19 kB / 0.735 GB, free: 2.422 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0002402/2.119, allocations: 457.6 kB / 0.7354 GB, free: 2.051 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004007/2.123, allocations: 1.467 MB / 0.7368 GB, free: 1.48 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004798/2.128, allocations: 2.456 MB / 0.7392 GB, free: 15.72 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005378/2.133, allocations: 1.925 MB / 0.7411 GB, free: 14.87 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-05/2.133, allocations: 7.281 kB / 0.7411 GB, free: 14.87 MB / 426.8 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.01276/2.146, allocations: 4.662 MB / 0.7457 GB, free: 13.04 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.726e-05/2.146, allocations: 20.53 kB / 0.7457 GB, free: 13.04 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.641e-05/2.146, allocations: 27.47 kB / 0.7457 GB, free: 13.04 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/2.148, allocations: 435.6 kB / 0.7461 GB, free: 12.89 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006406/2.154, allocations: 0.8357 MB / 0.7469 GB, free: 12.87 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/2.165, allocations: 7.715 MB / 0.7545 GB, free: 6.379 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004618/2.169, allocations: 167.8 kB / 0.7546 GB, free: 6.316 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007323/2.17, allocations: 157.9 kB / 0.7548 GB, free: 6.285 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (422): * Single equations (assignments): 416 * 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: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005911/2.176, allocations: 2.072 MB / 0.7568 GB, free: 5.234 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/2.177, allocations: 376 kB / 0.7572 GB, free: 5.043 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/2.19, allocations: 4.526 MB / 0.7616 GB, free: 2.977 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.951e-05/2.19, allocations: 28.22 kB / 0.7616 GB, free: 2.977 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.506e-05/2.19, allocations: 15.27 kB / 0.7616 GB, free: 2.973 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-05/2.19, allocations: 14.16 kB / 0.7616 GB, free: 2.973 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02983/2.22, allocations: 10.82 MB / 0.7722 GB, free: 13.6 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/2.22, allocations: 11.55 kB / 0.7722 GB, free: 13.59 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003988/2.224, allocations: 454.5 kB / 0.7727 GB, free: 13.24 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003757/2.228, allocations: 0.8675 MB / 0.7735 GB, free: 12.53 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003185/2.228, allocations: 79.41 kB / 0.7736 GB, free: 12.46 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02838/2.257, allocations: 16.41 MB / 0.7896 GB, free: 12.69 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.128e-06/2.257, allocations: 7.75 kB / 0.7896 GB, free: 12.69 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0186/2.275, allocations: 6.848 MB / 0.7963 GB, free: 6.234 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002945/2.278, allocations: 0.7842 MB / 0.7971 GB, free: 5.512 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/2.28, allocations: 64 kB / 0.7971 GB, free: 5.449 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003708/2.283, allocations: 153.5 kB / 0.7973 GB, free: 5.328 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000794/2.284, allocations: 212.7 kB / 0.7975 GB, free: 5.195 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002898/2.284, allocations: 91.59 kB / 0.7976 GB, free: 5.113 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.005764/2.29, allocations: 2.231 MB / 0.7997 GB, free: 3.246 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.082e-06/2.29, allocations: 0 / 0.7997 GB, free: 3.246 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.006641/2.297, allocations: 1.206 MB / 0.8009 GB, free: 2.047 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * 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): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(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.02035/2.317, allocations: 8.833 MB / 0.8095 GB, free: 9.746 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0118/2.329, allocations: 4.325 MB / 0.8138 GB, free: 5.746 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.028e-06/2.329, allocations: 0 / 0.8138 GB, free: 5.746 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0084/2.338, allocations: 2.988 MB / 0.8167 GB, free: 2.965 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007733/2.345, allocations: 0.9272 MB / 0.8176 GB, free: 2.238 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.399/2.744, allocations: 55.98 MB / 0.8723 GB, free: 58.87 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008429/2.753, allocations: 4.256 MB / 0.8764 GB, free: 58.02 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006067/2.759, allocations: 2.582 MB / 0.8789 GB, free: 58.02 MB / 474.8 MB Notification: Performance of SimCode: time 1.934e-06/2.759, allocations: 0 / 0.8789 GB, free: 58.02 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.472/8.231, allocations: 321.9 MB / 1.193 GB, free: 105 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_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.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat