Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.0009619, allocations: 96.61 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.54e-05/2.535e-05, allocations: 4 kB / 337.2 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1244, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4293/0.5538, allocations: 146.7 MB / 0.5218 GB, free: 11.85 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.5541, allocations: 103.9 kB / 0.5219 GB, free: 11.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.223/1.777, allocations: 345.4 MB / 0.8592 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.073e-06/1.777, allocations: 0 / 0.8592 GB, free: 12.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008603/1.778, allocations: 247.7 kB / 0.8594 GB, free: 12.74 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04318/1.822, allocations: 10.19 MB / 0.8694 GB, free: 2.449 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.143e-05/1.822, allocations: 11.98 kB / 0.8694 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4326/2.254, allocations: 4.719 MB / 0.874 GB, free: 27.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03196/2.286, allocations: 9.461 MB / 0.8832 GB, free: 26.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000968/2.287, allocations: 340.3 kB / 0.8836 GB, free: 26.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006485/2.294, allocations: 0.611 MB / 0.8842 GB, free: 26.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04359/2.337, allocations: 13.53 MB / 0.8974 GB, free: 26.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06039/2.398, allocations: 15.15 MB / 0.9122 GB, free: 25.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000805/2.399, allocations: 11.34 kB / 0.9122 GB, free: 25.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005389/2.404, allocations: 7.688 kB / 0.9122 GB, free: 25.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001339/2.405, allocations: 0.758 MB / 0.9129 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1138/2.519, allocations: 54.88 MB / 0.9665 GB, free: 6.508 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03422/2.554, allocations: 31.81 MB / 0.9976 GB, free: 10.81 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008623/2.562, allocations: 4.36 MB / 1.002 GB, free: 9.188 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02428/2.587, allocations: 10.7 MB / 1.012 GB, free: 3.992 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.616e-05/2.587, allocations: 78.61 kB / 1.012 GB, free: 3.922 MB / 474.7 MB Notification: Performance of pre-optimization done (n=393): time 6.392e-06/2.587, allocations: 0 / 1.012 GB, free: 3.922 MB / 474.7 MB Notification: Performance of matching and sorting (n=418): time 0.04939/2.636, allocations: 18.55 MB / 1.03 GB, free: 9.691 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/2.636, allocations: 122 kB / 1.031 GB, free: 9.551 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008088/2.644, allocations: 3.5 MB / 1.034 GB, free: 6.441 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001134/2.646, allocations: 25.7 kB / 1.034 GB, free: 6.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004015/2.65, allocations: 4.677 MB / 1.039 GB, free: 2.242 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00251/2.652, allocations: 1.374 MB / 1.04 GB, free: 0.9805 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006496/2.653, allocations: 0 / 1.04 GB, free: 0.9805 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004712/2.653, allocations: 0.5424 MB / 1.04 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01294/2.666, allocations: 3.469 MB / 1.044 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007744/2.674, allocations: 4.813 MB / 1.049 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/2.684, allocations: 4.809 MB / 1.053 GB, free: 6.414 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/2.684, allocations: 20 kB / 1.053 GB, free: 6.395 MB / 0.4948 GB Notification: Performance of matching and sorting (n=759) (initialization): time 0.4197/3.104, allocations: 10.04 MB / 1.063 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/3.104, allocations: 33.03 kB / 1.063 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001789/3.104, allocations: 66.67 kB / 1.063 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00557/3.11, allocations: 1.628 MB / 1.065 GB, free: 80.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006938/3.117, allocations: 1.348 MB / 1.066 GB, free: 80.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0233/3.14, allocations: 15.83 MB / 1.082 GB, free: 75.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00687/3.147, allocations: 256.8 kB / 1.082 GB, free: 75.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/3.149, allocations: 280.6 kB / 1.082 GB, free: 75.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (666): * Single equations (assignments): 662 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,67.3%) 28,(1,100.0%) 1,(14,39.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001993/3.151, allocations: 289.8 kB / 1.082 GB, free: 75.44 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01691/3.168, allocations: 7.572 MB / 1.09 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002237/3.171, allocations: 461.3 kB / 1.09 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/3.188, allocations: 8.343 MB / 1.098 GB, free: 74.51 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.73e-05/3.188, allocations: 40.09 kB / 1.098 GB, free: 74.51 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.218e-05/3.188, allocations: 20.25 kB / 1.098 GB, free: 74.51 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.668e-05/3.188, allocations: 22.92 kB / 1.098 GB, free: 74.51 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03521/3.223, allocations: 16.62 MB / 1.115 GB, free: 73.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.143e-05/3.223, allocations: 7.375 kB / 1.115 GB, free: 73.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003593/3.227, allocations: 0.763 MB / 1.115 GB, free: 73.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004193/3.231, allocations: 1.516 MB / 1.117 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008191/3.232, allocations: 44.25 kB / 1.117 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02121/3.253, allocations: 18.76 MB / 1.135 GB, free: 64.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.301e-05/3.253, allocations: 10.92 kB / 1.135 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02194/3.275, allocations: 12.83 MB / 1.148 GB, free: 62.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003704/3.279, allocations: 1.147 MB / 1.149 GB, free: 62.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001487/3.281, allocations: 17.69 kB / 1.149 GB, free: 62.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003939/3.285, allocations: 216.6 kB / 1.149 GB, free: 62.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001278/3.286, allocations: 326.4 kB / 1.149 GB, free: 62.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004461/3.286, allocations: 125.9 kB / 1.15 GB, free: 62.26 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005664/3.292, allocations: 2.577 MB / 1.152 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.1e-07/3.292, allocations: 0 / 1.152 GB, free: 61.72 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01251/3.305, allocations: 1.689 MB / 1.154 GB, free: 61.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (360): * Single equations (assignments): 353 * 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 {(1,100.0%) 1,(14,40.3%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02502/3.33, allocations: 15.14 MB / 1.168 GB, free: 53.62 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01516/3.345, allocations: 7.825 MB / 1.176 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.72e-05/3.345, allocations: 3.406 kB / 1.176 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008425/3.353, allocations: 4.509 MB / 1.181 GB, free: 48.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007264/3.361, allocations: 0.9062 MB / 1.181 GB, free: 47.94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0526/3.413, allocations: 19.28 MB / 1.2 GB, free: 36.44 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/3.428, allocations: 6.945 MB / 1.207 GB, free: 31.21 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007557/3.435, allocations: 1.821 MB / 1.209 GB, free: 30.01 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007618/3.443, allocations: 3.955 MB / 1.213 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of SimCode: time 2.064e-06/3.443, allocations: 4 kB / 1.213 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6242/4.067, allocations: 137.4 MB / 1.347 GB, free: 54.91 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/4.067, allocations: 201.6 kB / 1.347 GB, free: 54.63 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.044/10.11, allocations: 4 kB / 1.347 GB, free: 54.63 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat