Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 3.2.3+maint.om/package.mo", uses=false) 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 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.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.0008738/0.000874, allocations: 92.97 kB / 16.95 MB, free: 6.457 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.0008831/0.0008832, allocations: 182.7 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004111/0.0004112, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09205, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01752/0.1096, allocations: 17.2 MB / 345.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.1209, allocations: 5.342 MB / 351 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003013/0.124, allocations: 103.5 kB / 351.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003281/0.1273, allocations: 0.9552 MB / 352.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006181/0.1335, allocations: 1.589 MB / 353.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003127/0.1366, allocations: 0.7876 MB / 354.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009281/0.1459, allocations: 6.534 MB / 361 MB, free: 3.352 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005584/0.1516, allocations: 3.531 MB / 364.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003468/0.1551, allocations: 2.082 MB / 366.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004079/0.1592, allocations: 2.747 MB / 369.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008197/0.16, allocations: 336 kB / 369.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001859/0.1619, allocations: 0.5661 MB / 370.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001404/0.1633, allocations: 1.413 MB / 371.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001892/0.1652, allocations: 1.167 MB / 372.8 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.213/0.3782, allocations: 8.626 MB / 381.4 MB, free: 19.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3782, allocations: 3.188 kB / 381.4 MB, free: 19.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3782, allocations: 0.9688 kB / 381.4 MB, free: 19.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003582/0.3786, allocations: 3.828 kB / 381.4 MB, free: 19.34 MB / 318.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.01619/0.3948, allocations: 5.671 MB / 387.1 MB, free: 17.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3949, allocations: 10.06 kB / 387.1 MB, free: 17.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00263/0.3975, allocations: 0.7 MB / 387.8 MB, free: 17.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005782/0.4033, allocations: 1.079 MB / 388.9 MB, free: 16.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0077/0.411, allocations: 3.3 MB / 392.2 MB, free: 16.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004662/0.4115, allocations: 395 kB / 392.6 MB, free: 16.15 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001732/0.4133, allocations: 0.4989 MB / 393.1 MB, free: 16.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01453/0.4278, allocations: 6.917 MB / 400 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.428, allocations: 17.55 kB / 400 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000493/0.4285, allocations: 210.2 kB / 400.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002058/0.4287, allocations: 234.5 kB / 400.4 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01037/0.4391, allocations: 5.898 MB / 406.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03763/0.4767, allocations: 21.48 MB / 427.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00831/0.4851, allocations: 8.688 MB / 436.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003997/0.4891, allocations: 2.384 MB / 438.9 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01114/0.5003, allocations: 6.154 MB / 445 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.794e-05/0.5004, allocations: 60.03 kB / 445.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 5.621e-06/0.5004, allocations: 0 / 445.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=238): time 0.02594/0.5264, allocations: 11.42 MB / 456.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.5265, allocations: 81.41 kB / 456.6 MB, free: 420 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006734/0.5332, allocations: 2.973 MB / 459.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005613/0.5338, allocations: 65.7 kB / 459.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002222/0.5361, allocations: 2.304 MB / 461.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/0.5374, allocations: 0.8151 MB / 462.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003825/0.5378, allocations: 56 kB / 462.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002836/0.5381, allocations: 419.9 kB / 463.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002715/0.5408, allocations: 1.356 MB / 464.6 MB, free: 8.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003437/0.5443, allocations: 2.133 MB / 466.7 MB, free: 5.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003547/0.5479, allocations: 1.7 MB / 468.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.058e-05/0.5479, allocations: 8 kB / 468.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.009915/0.5578, allocations: 4.652 MB / 473.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.716e-05/0.5579, allocations: 16 kB / 473.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-05/0.558, allocations: 24 kB / 473.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/0.5599, allocations: 0.7647 MB / 473.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002643/0.5626, allocations: 0.6348 MB / 474.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01406/0.5766, allocations: 13.39 MB / 487.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003396/0.5801, allocations: 167.8 kB / 488.1 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007255/0.5808, allocations: 120 kB / 488.2 MB, free: 15.7 MB / 398.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.005087/0.586, allocations: 1.599 MB / 489.8 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001777/0.5878, allocations: 324.1 kB / 490.1 MB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/0.5989, allocations: 4.21 MB / 494.3 MB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.378e-05/0.5989, allocations: 27.95 kB / 494.3 MB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.432e-05/0.599, allocations: 8 kB / 494.3 MB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.061e-05/0.5991, allocations: 18.36 kB / 494.4 MB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02109/0.6202, allocations: 9.113 MB / 0.4917 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/0.6202, allocations: 6.406 kB / 0.4917 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/0.622, allocations: 382 kB / 0.492 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002519/0.6246, allocations: 0.9232 MB / 0.4929 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003994/0.625, allocations: 71.97 kB / 0.493 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01761/0.6426, allocations: 16.5 MB / 0.5091 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/0.6427, allocations: 15.61 kB / 0.5091 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/0.6544, allocations: 6.053 MB / 0.515 GB, free: 7.312 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002532/0.6569, allocations: 0.7001 MB / 0.5157 GB, free: 6.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001479/0.6584, allocations: 55.98 kB / 0.5158 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/0.6608, allocations: 143.9 kB / 0.5159 GB, free: 6.395 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006838/0.6615, allocations: 199.5 kB / 0.5161 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000324/0.6619, allocations: 67.97 kB / 0.5162 GB, free: 6.141 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00454/0.6664, allocations: 2.014 MB / 0.5181 GB, free: 4.129 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.462e-06/0.6665, allocations: 384 / 0.5181 GB, free: 4.129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005603/0.6721, allocations: 0.9867 MB / 0.5191 GB, free: 3.145 MB / 430.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%) 13,(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.0125/0.6846, allocations: 6.723 MB / 0.5257 GB, free: 12.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008396/0.693, allocations: 4.587 MB / 0.5301 GB, free: 7.676 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.6931, allocations: 0 / 0.5301 GB, free: 7.676 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005976/0.6991, allocations: 3.048 MB / 0.5331 GB, free: 4.547 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007053/0.7062, allocations: 0.8733 MB / 0.534 GB, free: 3.672 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2573/0.9635, allocations: 30.5 MB / 0.5638 GB, free: 149.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004798/0.9684, allocations: 3.432 MB / 0.5671 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003409/0.9719, allocations: 0.7679 MB / 0.5679 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003532/0.9754, allocations: 1.956 MB / 0.5698 GB, free: 147 MB / 446.1 MB Notification: Performance of SimCode: time 1.753e-06/0.9755, allocations: 0 / 0.5698 GB, free: 147 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1353/1.111, allocations: 83.16 MB / 0.651 GB, free: 66.37 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002525/1.111, allocations: 242.3 kB / 0.6512 GB, free: 66.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.506/5.617, allocations: 0 / 0.6512 GB, free: 66.11 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat