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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007874/0.0007875, allocations: 86.5 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008498/0.0008498, allocations: 180.2 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 223.3 MB / 241.2 MB, free: 5.207 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002479/0.000248, allocations: 6.25 kB / 300.9 MB, free: 5.609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1109, allocations: 50.42 MB / 351.4 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.02853/0.1394, allocations: 28.76 MB / 380.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02104/0.1605, allocations: 8.314 MB / 388.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006411/0.167, allocations: 219.2 kB / 388.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005927/0.1729, allocations: 1.643 MB / 390.3 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01122/0.1842, allocations: 3.019 MB / 393.3 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005389/0.1896, allocations: 1.37 MB / 394.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02141/0.211, allocations: 15.63 MB / 410.3 MB, free: 128 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3256/0.5366, allocations: 17.58 MB / 427.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01416/0.5508, allocations: 4.779 MB / 432.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01763/0.5685, allocations: 5.431 MB / 438.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005386/0.574, allocations: 0.7291 MB / 438.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009326/0.5833, allocations: 1.054 MB / 439.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006805/0.5902, allocations: 2.355 MB / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008677/0.5989, allocations: 2.389 MB / 444.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02518/0.6241, allocations: 21.06 MB / 465.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.6241, allocations: 0 / 465.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6241, allocations: 0 / 465.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009074/0.625, allocations: 0 / 465.7 MB, free: 2.484 MB / 350.1 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.04073/0.6658, allocations: 12.36 MB / 478.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.6659, allocations: 6.5 kB / 478.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008066/0.6739, allocations: 1.518 MB / 479.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0383/0.7123, allocations: 6.784 MB / 486.4 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02236/0.7347, allocations: 7.739 MB / 494.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001084/0.7358, allocations: 0.799 MB / 494.9 MB, free: 3.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006654/0.7425, allocations: 1.053 MB / 496 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06418/0.8067, allocations: 17.14 MB / 0.5011 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006953/0.8074, allocations: 15.8 kB / 0.5011 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005349/0.8128, allocations: 443.4 kB / 0.5015 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008151/0.8136, allocations: 0.6236 MB / 0.5021 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04466/0.8583, allocations: 16.23 MB / 0.518 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.116/0.9743, allocations: 55.96 MB / 0.5726 GB, free: 12.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3182/1.293, allocations: 31.03 MB / 0.6029 GB, free: 115.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009298/1.302, allocations: 4.355 MB / 0.6072 GB, free: 115.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02103/1.323, allocations: 10.47 MB / 0.6174 GB, free: 113.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/1.323, allocations: 71.31 kB / 0.6175 GB, free: 113.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=398): time 4.578e-06/1.323, allocations: 1.203 kB / 0.6175 GB, free: 113.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=423): time 0.0575/1.381, allocations: 23.49 MB / 0.6404 GB, free: 104 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/1.381, allocations: 121.9 kB / 0.6405 GB, free: 103.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007274/1.388, allocations: 4.641 MB / 0.6451 GB, free: 102.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009514/1.389, allocations: 101.1 kB / 0.6452 GB, free: 102.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002788/1.392, allocations: 4.657 MB / 0.6497 GB, free: 98.61 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001743/1.394, allocations: 1.447 MB / 0.6511 GB, free: 97.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003676/1.394, allocations: 114.9 kB / 0.6512 GB, free: 97.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002938/1.394, allocations: 0.5393 MB / 0.6518 GB, free: 96.99 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004107/1.398, allocations: 2.898 MB / 0.6546 GB, free: 95.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005153/1.403, allocations: 4.937 MB / 0.6594 GB, free: 91.94 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005317/1.409, allocations: 3.934 MB / 0.6632 GB, free: 87.99 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.34e-05/1.409, allocations: 20 kB / 0.6633 GB, free: 87.97 MB / 462.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01571/1.425, allocations: 9.69 MB / 0.6727 GB, free: 78.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.748e-05/1.425, allocations: 38.25 kB / 0.6728 GB, free: 78.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.062e-05/1.425, allocations: 64 kB / 0.6728 GB, free: 78.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/1.429, allocations: 1.674 MB / 0.6745 GB, free: 76.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005307/1.434, allocations: 1.322 MB / 0.6757 GB, free: 75.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02113/1.455, allocations: 16.46 MB / 0.6918 GB, free: 58.15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007716/1.463, allocations: 331.7 kB / 0.6921 GB, free: 57.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001317/1.464, allocations: 276 kB / 0.6924 GB, free: 57.55 MB / 462.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 667 * 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,(8,56.2%) 27,(1,100.0%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009578/1.474, allocations: 3.888 MB / 0.6962 GB, free: 53.65 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001519/1.476, allocations: 0.4901 MB / 0.6967 GB, free: 53.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/1.488, allocations: 7.794 MB / 0.7043 GB, free: 45.25 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.443e-05/1.488, allocations: 44 kB / 0.7043 GB, free: 45.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.182e-05/1.488, allocations: 16 kB / 0.7044 GB, free: 45.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.941e-05/1.488, allocations: 19.92 kB / 0.7044 GB, free: 45.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02964/1.518, allocations: 17.45 MB / 0.7214 GB, free: 27.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/1.518, allocations: 4.781 kB / 0.7214 GB, free: 27.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002874/1.521, allocations: 0.7333 MB / 0.7221 GB, free: 26.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003804/1.525, allocations: 1.546 MB / 0.7236 GB, free: 25.27 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003853/1.525, allocations: 104 kB / 0.7237 GB, free: 25.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01898/1.544, allocations: 19.5 MB / 0.7428 GB, free: 4.758 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.544, allocations: 7.938 kB / 0.7428 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01962/1.564, allocations: 11.43 MB / 0.754 GB, free: 9.129 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003677/1.568, allocations: 1.155 MB / 0.7551 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001457/1.569, allocations: 95.98 kB / 0.7552 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00293/1.572, allocations: 239.8 kB / 0.7554 GB, free: 7.621 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008657/1.573, allocations: 327.3 kB / 0.7557 GB, free: 7.301 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003096/1.573, allocations: 132 kB / 0.7558 GB, free: 7.172 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006728/1.58, allocations: 3.13 MB / 0.7589 GB, free: 4.043 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.58, allocations: 0 / 0.7589 GB, free: 4.043 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01178/1.592, allocations: 1.866 MB / 0.7607 GB, free: 2.18 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.phi) * 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 (364): * Single equations (assignments): 357 * 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,41.3%) 44,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3223/1.914, allocations: 12.15 MB / 0.7726 GB, free: 136.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01714/1.931, allocations: 8.064 MB / 0.7805 GB, free: 135.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.556e-05/1.931, allocations: 3.938 kB / 0.7805 GB, free: 135.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009507/1.941, allocations: 4.634 MB / 0.785 GB, free: 134.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/1.952, allocations: 1.255 MB / 0.7862 GB, free: 134 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1443/2.096, allocations: 57.32 MB / 0.8422 GB, free: 92.85 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/2.112, allocations: 6.764 MB / 0.8488 GB, free: 87.62 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007744/2.119, allocations: 1.853 MB / 0.8506 GB, free: 86.34 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00749/2.127, allocations: 3.919 MB / 0.8544 GB, free: 82.7 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/2.127, allocations: 0 / 0.8544 GB, free: 82.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4905/2.617, allocations: 146.4 MB / 0.9974 GB, free: 128.7 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/2.618, allocations: 271 kB / 0.9976 GB, free: 128.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.485/8.103, allocations: 2.5 kB / 0.9976 GB, free: 128.3 MB / 494.1 MB (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