Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_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.00097/0.0009702, allocations: 100 kB / 16.94 MB, free: 6.441 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.0009716/0.0009717, allocations: 183.9 kB / 17.83 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.412/1.412, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004487/0.0004489, allocations: 8 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/0.09599, allocations: 47.58 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.03452/0.1306, allocations: 30.68 MB / 359.1 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02343/0.154, allocations: 9.657 MB / 368.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006719/0.1608, allocations: 235.1 kB / 369 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007954/0.1688, allocations: 2.079 MB / 371.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01391/0.1827, allocations: 3.486 MB / 374.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00746/0.1902, allocations: 1.638 MB / 376.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.207/0.3972, allocations: 13.73 MB / 389.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04177/0.4391, allocations: 24.41 MB / 414.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01145/0.4506, allocations: 5.712 MB / 420.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.012/0.4626, allocations: 6.324 MB / 426.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004443/0.4671, allocations: 0.9375 MB / 427.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007845/0.4749, allocations: 1.239 MB / 428.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005101/0.4801, allocations: 2.934 MB / 431.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006398/0.4865, allocations: 3.105 MB / 434.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03056/0.5171, allocations: 26.94 MB / 461.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.5171, allocations: 0 / 461.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.5171, allocations: 4 kB / 461.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008581/0.518, allocations: 0 / 461.6 MB, free: 3.414 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: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.04505/0.5631, allocations: 15.79 MB / 477.3 MB, free: 3.723 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.5631, allocations: 12.03 kB / 477.4 MB, free: 3.711 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008817/0.5719, allocations: 2.318 MB / 479.7 MB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05094/0.6229, allocations: 9.206 MB / 488.9 MB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02277/0.6457, allocations: 9.024 MB / 497.9 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001272/0.647, allocations: 1.073 MB / 499 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007196/0.6543, allocations: 1.412 MB / 0.4887 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06615/0.7204, allocations: 23 MB / 0.5111 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008367/0.7213, allocations: 23.73 kB / 0.5111 GB, free: 5.758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006316/0.7277, allocations: 0.5865 MB / 0.5117 GB, free: 5.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001048/0.7287, allocations: 0.811 MB / 0.5125 GB, free: 4.375 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.422/1.151, allocations: 21.61 MB / 0.5336 GB, free: 110.4 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1293/1.28, allocations: 74.3 MB / 0.6062 GB, free: 63.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03156/1.312, allocations: 53.52 MB / 0.6584 GB, free: 8.203 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02885/1.341, allocations: 15.26 MB / 0.6733 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.646e-05/1.341, allocations: 94.77 kB / 0.6734 GB, free: 8.895 MB / 446.1 MB Notification: Performance of pre-optimization done (n=514): time 6.603e-06/1.341, allocations: 0 / 0.6734 GB, free: 8.895 MB / 446.1 MB Notification: Performance of matching and sorting (n=522): time 0.06298/1.404, allocations: 27.3 MB / 0.7001 GB, free: 13.17 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.537e-05/1.404, allocations: 129.4 kB / 0.7002 GB, free: 13.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009033/1.413, allocations: 5.793 MB / 0.7059 GB, free: 7.258 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001041/1.414, allocations: 109.7 kB / 0.706 GB, free: 7.145 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004731/1.419, allocations: 6.276 MB / 0.7121 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2132/1.632, allocations: 1.779 MB / 0.7138 GB, free: 154.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007555/1.633, allocations: 158.9 kB / 0.714 GB, free: 154.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004902/1.633, allocations: 0.6241 MB / 0.7146 GB, free: 154.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00691/1.64, allocations: 3.748 MB / 0.7183 GB, free: 154.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00913/1.649, allocations: 6.8 MB / 0.7249 GB, free: 149.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/1.66, allocations: 5.208 MB / 0.73 GB, free: 147.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002041/1.66, allocations: 29.28 kB / 0.73 GB, free: 147.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=1015) (initialization): time 0.02397/1.684, allocations: 12.53 MB / 0.7423 GB, free: 142.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/1.684, allocations: 47.06 kB / 0.7423 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002112/1.685, allocations: 101.6 kB / 0.7424 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004341/1.689, allocations: 1.6 MB / 0.744 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007124/1.696, allocations: 1.759 MB / 0.7457 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/1.716, allocations: 18.65 MB / 0.7639 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007523/1.724, allocations: 440.1 kB / 0.7643 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001726/1.726, allocations: 396.2 kB / 0.7647 GB, free: 129.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 460 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,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 (915): * Single equations (assignments): 905 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 1,(12,54.2%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01057/1.736, allocations: 5.257 MB / 0.7698 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001539/1.738, allocations: 0.6103 MB / 0.7704 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01492/1.753, allocations: 9.572 MB / 0.7798 GB, free: 117.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008728/1.762, allocations: 5.982 MB / 0.7856 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.427e-05/1.762, allocations: 20 kB / 0.7856 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.993e-05/1.762, allocations: 26.62 kB / 0.7857 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03674/1.799, allocations: 21.39 MB / 0.8065 GB, free: 91.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.158e-05/1.799, allocations: 4 kB / 0.8065 GB, free: 91.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003669/1.802, allocations: 0.8862 MB / 0.8074 GB, free: 91.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004167/1.807, allocations: 1.62 MB / 0.809 GB, free: 89.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006204/1.807, allocations: 132 kB / 0.8091 GB, free: 89.28 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02004/1.827, allocations: 21.75 MB / 0.8304 GB, free: 66.64 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/1.827, allocations: 11.94 kB / 0.8304 GB, free: 66.62 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01938/1.847, allocations: 14.93 MB / 0.845 GB, free: 51.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003894/1.851, allocations: 1.38 MB / 0.8463 GB, free: 49.77 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001515/1.852, allocations: 112 kB / 0.8464 GB, free: 49.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003686/1.856, allocations: 300.9 kB / 0.8467 GB, free: 49.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009533/1.857, allocations: 408.4 kB / 0.8471 GB, free: 48.96 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000346/1.857, allocations: 160 kB / 0.8472 GB, free: 48.81 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006367/1.864, allocations: 3.875 MB / 0.851 GB, free: 44.96 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.864, allocations: 4 kB / 0.851 GB, free: 44.96 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01051/1.874, allocations: 2.376 MB / 0.8533 GB, free: 42.59 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 440 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 5,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(12,54.9%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02054/1.895, allocations: 16.91 MB / 0.8699 GB, free: 25.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01517/1.91, allocations: 10.17 MB / 0.8798 GB, free: 14.96 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/1.91, allocations: 0 / 0.8798 GB, free: 14.96 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1946/2.104, allocations: 5.545 MB / 0.8852 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007956/2.113, allocations: 1.485 MB / 0.8867 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1675/2.28, allocations: 144.7 MB / 1.028 GB, free: 33.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01659/2.297, allocations: 9.164 MB / 1.037 GB, free: 23.93 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01118/2.308, allocations: 2.603 MB / 1.039 GB, free: 21.32 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01117/2.319, allocations: 5.189 MB / 1.044 GB, free: 16.13 MB / 478.1 MB Notification: Performance of SimCode: time 2.244e-06/2.319, allocations: 0 / 1.044 GB, free: 16.13 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4627/2.782, allocations: 183.1 MB / 1.223 GB, free: 3.41 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/2.782, allocations: 262.2 kB / 1.224 GB, free: 3.066 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.913/8.695, allocations: 0 / 1.224 GB, free: 3.066 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat