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.0017/0.0017, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 221.3 MB / 235.5 MB, free: 2.918 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.0009265/0.0009265, allocations: 93.98 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.457e-05/4.461e-05, allocations: 4 kB / 344 MB, free: 4.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1333, allocations: 50.42 MB / 394.4 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4763/0.6096, allocations: 147.4 MB / 0.529 GB, free: 3.945 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/0.61, allocations: 103.9 kB / 0.5291 GB, free: 3.844 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.34/1.95, allocations: 349.3 MB / 0.8703 GB, free: 11.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.135e-06/1.95, allocations: 4 kB / 0.8703 GB, free: 11.53 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001665/1.952, allocations: 251.6 kB / 0.8705 GB, free: 11.29 MB / 458.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.04687/1.999, allocations: 10.19 MB / 0.8805 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/1.999, allocations: 12.03 kB / 0.8805 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.403/2.402, allocations: 1.491 MB / 0.8819 GB, free: 30.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02994/2.432, allocations: 4.732 MB / 0.8865 GB, free: 30.43 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03386/2.465, allocations: 9.475 MB / 0.8958 GB, free: 29.92 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00201/2.468, allocations: 0.7712 MB / 0.8966 GB, free: 29.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009141/2.477, allocations: 1.02 MB / 0.8976 GB, free: 29.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06301/2.54, allocations: 16.79 MB / 0.9139 GB, free: 28.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005647/2.54, allocations: 16.16 kB / 0.914 GB, free: 28.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00429/2.545, allocations: 448.5 kB / 0.9144 GB, free: 28.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001013/2.546, allocations: 0.7518 MB / 0.9151 GB, free: 28.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03668/2.582, allocations: 15.02 MB / 0.9298 GB, free: 28.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1209/2.703, allocations: 55.88 MB / 0.9844 GB, free: 7.031 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02921/2.733, allocations: 30.93 MB / 1.015 GB, free: 11.37 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00773/2.74, allocations: 4.231 MB / 1.019 GB, free: 9.746 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0223/2.763, allocations: 10.46 MB / 1.029 GB, free: 4.578 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.174e-05/2.763, allocations: 79.97 kB / 1.029 GB, free: 4.508 MB / 490.7 MB Notification: Performance of pre-optimization done (n=396): time 5.981e-06/2.763, allocations: 0 / 1.029 GB, free: 4.508 MB / 490.7 MB Notification: Performance of matching and sorting (n=421): time 0.03567/2.799, allocations: 15.99 MB / 1.045 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/2.799, allocations: 127.2 kB / 1.045 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007955/2.807, allocations: 4.075 MB / 1.049 GB, free: 6.512 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001117/2.808, allocations: 103.1 kB / 1.049 GB, free: 6.41 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00363/2.811, allocations: 4.655 MB / 1.053 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00242/2.814, allocations: 1.444 MB / 1.055 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004524/2.814, allocations: 120 kB / 1.055 GB, free: 0.8672 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004331/2.815, allocations: 0.5383 MB / 1.055 GB, free: 400 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01468/2.829, allocations: 3.638 MB / 1.059 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4459/3.275, allocations: 4.819 MB / 1.064 GB, free: 72.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008065/3.284, allocations: 3.871 MB / 1.067 GB, free: 72.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001592/3.284, allocations: 21.44 kB / 1.067 GB, free: 72.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=762) (initialization): time 0.02579/3.31, allocations: 9.513 MB / 1.077 GB, free: 72.24 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/3.31, allocations: 32.91 kB / 1.077 GB, free: 72.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001776/3.31, allocations: 64.84 kB / 1.077 GB, free: 72.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005558/3.315, allocations: 1.657 MB / 1.078 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006255/3.322, allocations: 1.312 MB / 1.08 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02398/3.346, allocations: 16.38 MB / 1.096 GB, free: 66.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006214/3.352, allocations: 337.1 kB / 1.096 GB, free: 66.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001377/3.353, allocations: 279.9 kB / 1.096 GB, free: 66.95 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 (669): * Single equations (assignments): 665 * 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,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001215/3.355, allocations: 481 kB / 1.097 GB, free: 66.84 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/3.356, allocations: 494 kB / 1.097 GB, free: 66.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01404/3.37, allocations: 7.633 MB / 1.105 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.303e-05/3.37, allocations: 44.02 kB / 1.105 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.485e-05/3.37, allocations: 18.56 kB / 1.105 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.125e-05/3.37, allocations: 22.81 kB / 1.105 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03167/3.402, allocations: 17.27 MB / 1.122 GB, free: 65.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/3.402, allocations: 8.516 kB / 1.122 GB, free: 65.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/3.405, allocations: 0.725 MB / 1.122 GB, free: 65.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004355/3.41, allocations: 1.554 MB / 1.124 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008955/3.411, allocations: 99.62 kB / 1.124 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/3.432, allocations: 19.44 MB / 1.143 GB, free: 55.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/3.432, allocations: 9.188 kB / 1.143 GB, free: 55.92 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01686/3.449, allocations: 11.9 MB / 1.155 GB, free: 51.69 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003385/3.453, allocations: 1.161 MB / 1.156 GB, free: 50.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009006/3.453, allocations: 88.53 kB / 1.156 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002677/3.456, allocations: 250.1 kB / 1.156 GB, free: 50.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007889/3.457, allocations: 326.6 kB / 1.156 GB, free: 50.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002771/3.457, allocations: 126.8 kB / 1.156 GB, free: 50.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005296/3.462, allocations: 3.066 MB / 1.159 GB, free: 49.56 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.51e-07/3.463, allocations: 2.719 kB / 1.159 GB, free: 49.56 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009393/3.472, allocations: 1.904 MB / 1.161 GB, free: 49.37 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 (362): * Single equations (assignments): 355 * 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,39.8%) 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.0191/3.491, allocations: 14.4 MB / 1.175 GB, free: 41.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01573/3.507, allocations: 7.861 MB / 1.183 GB, free: 38.19 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/3.507, allocations: 0 / 1.183 GB, free: 38.19 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009331/3.516, allocations: 4.544 MB / 1.188 GB, free: 35.91 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008115/3.524, allocations: 1.173 MB / 1.189 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05834/3.583, allocations: 19.51 MB / 1.208 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0159/3.599, allocations: 6.951 MB / 1.215 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01193/3.611, allocations: 1.851 MB / 1.216 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01232/3.623, allocations: 3.972 MB / 1.22 GB, free: 9.133 MB / 0.4948 GB Notification: Performance of SimCode: time 2.475e-06/3.623, allocations: 4 kB / 1.22 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6039/4.227, allocations: 152.5 MB / 1.369 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/4.227, allocations: 235.9 kB / 1.369 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.926/11.15, allocations: 0 / 1.369 GB, free: 44.87 MB / 0.5105 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