Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",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.0008257/0.0008258, allocations: 93.59 kB / 16.31 MB, free: 5.586 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.0009484/0.0009487, allocations: 181.5 kB / 17.2 MB, free: 5.504 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.407/1.407, allocations: 223.2 MB / 241.2 MB, free: 5.273 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002489, allocations: 6.031 kB / 300.9 MB, free: 5.531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09572, allocations: 50.43 MB / 351.4 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.01814/0.1139, allocations: 17.26 MB / 368.6 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.1245, allocations: 5.306 MB / 373.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003289/0.1278, allocations: 111.6 kB / 374 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003371/0.1312, allocations: 0.9629 MB / 375 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005356/0.1366, allocations: 1.593 MB / 376.6 MB, free: 2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002798/0.1394, allocations: 0.7721 MB / 377.4 MB, free: 1.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0104/0.1498, allocations: 6.46 MB / 383.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007455/0.1573, allocations: 3.611 MB / 387.4 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00427/0.1616, allocations: 2.078 MB / 389.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005383/0.167, allocations: 2.743 MB / 392.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001468/0.1685, allocations: 332 kB / 392.6 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002674/0.1712, allocations: 0.5661 MB / 393.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002221/0.1735, allocations: 1.409 MB / 394.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002405/0.1759, allocations: 1.163 MB / 395.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.1862, allocations: 8.648 MB / 404.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1862, allocations: 0 / 404.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1862, allocations: 0 / 404.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003281/0.1865, allocations: 0 / 404.4 MB, free: 6.086 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01451/0.2011, allocations: 5.689 MB / 410 MB, free: 324 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.2011, allocations: 8.031 kB / 410.1 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002454/0.2036, allocations: 0.7038 MB / 410.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005709/0.2093, allocations: 1.074 MB / 411.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00684/0.2162, allocations: 3.468 MB / 415.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003179/0.2165, allocations: 386.3 kB / 415.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.2176, allocations: 0.4999 MB / 416.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01311/0.2308, allocations: 6.922 MB / 423.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001099/0.2309, allocations: 15.83 kB / 423.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004851/0.2314, allocations: 208 kB / 423.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002289/0.2317, allocations: 234.2 kB / 423.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2054/0.4371, allocations: 5.897 MB / 429.4 MB, free: 56.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04391/0.481, allocations: 21.47 MB / 450.9 MB, free: 45.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006834/0.4879, allocations: 8.69 MB / 459.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00335/0.4913, allocations: 2.377 MB / 462 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009878/0.5012, allocations: 6.144 MB / 468.1 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.5013, allocations: 52.56 kB / 468.2 MB, free: 31.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 3.897e-06/0.5013, allocations: 0 / 468.2 MB, free: 31.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=238): time 0.02031/0.5216, allocations: 11.42 MB / 479.6 MB, free: 20.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.5217, allocations: 81.25 kB / 479.7 MB, free: 20.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00388/0.5256, allocations: 2.958 MB / 482.6 MB, free: 17.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002976/0.5259, allocations: 65.7 kB / 482.7 MB, free: 17.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.527, allocations: 2.315 MB / 485 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005722/0.5276, allocations: 0.8075 MB / 485.8 MB, free: 14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.5278, allocations: 56 kB / 485.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.5279, allocations: 427.9 kB / 486.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001773/0.5297, allocations: 1.349 MB / 487.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.5317, allocations: 2.143 MB / 489.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002076/0.5338, allocations: 1.697 MB / 491.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.5339, allocations: 8 kB / 491.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006755/0.5406, allocations: 4.645 MB / 496.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.5407, allocations: 16 kB / 496.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-05/0.5407, allocations: 24 kB / 496.2 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.5422, allocations: 0.7648 MB / 496.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002072/0.5443, allocations: 0.6318 MB / 497.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/0.5569, allocations: 13.39 MB / 0.499 GB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/0.5597, allocations: 166 kB / 0.4991 GB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004566/0.5602, allocations: 120 kB / 0.4993 GB, free: 3.184 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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%) 8,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004056/0.5643, allocations: 1.605 MB / 0.5008 GB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008424/0.5651, allocations: 324 kB / 0.5011 GB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007262/0.5724, allocations: 4.203 MB / 0.5052 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.22e-05/0.5724, allocations: 23.98 kB / 0.5053 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.071e-05/0.5725, allocations: 12 kB / 0.5053 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.198e-05/0.5725, allocations: 7.969 kB / 0.5053 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/0.5889, allocations: 9.132 MB / 0.5142 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.589, allocations: 4 kB / 0.5142 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.5906, allocations: 383.5 kB / 0.5146 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/0.593, allocations: 0.9233 MB / 0.5155 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/0.5932, allocations: 63.97 kB / 0.5155 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0171/0.6103, allocations: 16.5 MB / 0.5316 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.6103, allocations: 7.938 kB / 0.5316 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/0.6203, allocations: 6.056 MB / 0.5376 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/0.6222, allocations: 0.6965 MB / 0.5382 GB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000526/0.6228, allocations: 59.98 kB / 0.5383 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/0.6242, allocations: 147.8 kB / 0.5384 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005104/0.6247, allocations: 197.3 kB / 0.5386 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.6249, allocations: 75.91 kB / 0.5387 GB, free: 9.355 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003645/0.6286, allocations: 2.01 MB / 0.5407 GB, free: 7.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6286, allocations: 0 / 0.5407 GB, free: 7.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004296/0.6329, allocations: 0.983 MB / 0.5416 GB, free: 6.367 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01128/0.6442, allocations: 6.732 MB / 0.5482 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007268/0.6515, allocations: 4.575 MB / 0.5527 GB, free: 10.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.6515, allocations: 0 / 0.5527 GB, free: 10.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005007/0.6565, allocations: 3.05 MB / 0.5556 GB, free: 7.605 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004642/0.6612, allocations: 0.8698 MB / 0.5565 GB, free: 6.742 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2507/0.9119, allocations: 30.47 MB / 0.5862 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004407/0.9164, allocations: 3.43 MB / 0.5896 GB, free: 135.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002697/0.9191, allocations: 0.7725 MB / 0.5904 GB, free: 135.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002493/0.9216, allocations: 1.956 MB / 0.5923 GB, free: 135.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/0.9216, allocations: 0 / 0.5923 GB, free: 135.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1188/1.04, allocations: 83.18 MB / 0.6735 GB, free: 63.97 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/1.041, allocations: 258 kB / 0.6737 GB, free: 63.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.084/5.125, allocations: 3.438 kB / 0.6737 GB, free: 63.64 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat