Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.001059/0.001059, allocations: 88.16 kB / 16.31 MB, free: 5.559 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.001129/0.001129, allocations: 180.4 kB / 17.21 MB, free: 5.477 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.416/1.416, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.0002531, allocations: 11.98 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1144, allocations: 50.43 MB / 351.4 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01195/0.1264, allocations: 10.75 MB / 362.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006491/0.133, allocations: 3.083 MB / 365.2 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008055/0.1338, allocations: 43.88 kB / 365.2 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.1351, allocations: 0.5203 MB / 365.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.1364, allocations: 0.5932 MB / 366.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.1369, allocations: 251.7 kB / 366.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002039/0.139, allocations: 2.156 MB / 368.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.14, allocations: 0.6872 MB / 369.4 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.1411, allocations: 0.7194 MB / 370.2 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3159/0.457, allocations: 0.8049 MB / 371 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008737/0.4579, allocations: 106.8 kB / 371.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.459, allocations: 144.2 kB / 371.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005187/0.4595, allocations: 311.3 kB / 371.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000991/0.4605, allocations: 406 kB / 371.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004893/0.4654, allocations: 2.223 MB / 374.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.153e-05/0.4654, allocations: 1.438 kB / 374.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4655, allocations: 0 / 374.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.4656, allocations: 0 / 374.1 MB, free: 11.5 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005918/0.4715, allocations: 1.862 MB / 376 MB, free: 10.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.28e-05/0.4716, allocations: 8.844 kB / 376 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005454/0.4721, allocations: 221.6 kB / 376.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001464/0.4736, allocations: 284.3 kB / 376.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003084/0.4767, allocations: 1.066 MB / 377.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.4769, allocations: 113 kB / 377.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003669/0.4773, allocations: 159.3 kB / 377.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004461/0.4818, allocations: 1.511 MB / 379.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.932e-05/0.4819, allocations: 12.34 kB / 379.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/0.4821, allocations: 63.94 kB / 379.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.11e-05/0.4821, allocations: 37.19 kB / 379.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003562/0.4857, allocations: 1.062 MB / 380.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009719/0.4955, allocations: 6.314 MB / 386.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.497, allocations: 0.6283 MB / 387.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008697/0.4979, allocations: 465.4 kB / 387.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.031e-05/0.4979, allocations: 9 kB / 387.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.498, allocations: 40.97 kB / 388 MB, free: 6.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.374e-06/0.498, allocations: 4 kB / 388 MB, free: 6.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.005443/0.5034, allocations: 2.46 MB / 390.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.5035, allocations: 115.3 kB / 390.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/0.5058, allocations: 1.288 MB / 391.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.5059, allocations: 38.64 kB / 391.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/0.5064, allocations: 0.8515 MB / 392.7 MB, free: 4.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.5066, allocations: 258.8 kB / 393 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.5067, allocations: 18.84 kB / 393 MB, free: 4.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.1e-05/0.5068, allocations: 352.9 kB / 393.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005692/0.5074, allocations: 290.1 kB / 393.6 MB, free: 3.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007504/0.5081, allocations: 0.7463 MB / 394.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008197/0.5089, allocations: 408.3 kB / 394.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/0.509, allocations: 5.125 kB / 394.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002779/0.5118, allocations: 1.293 MB / 396 MB, free: 2.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.5118, allocations: 11.41 kB / 396.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/0.5118, allocations: 17.34 kB / 396.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005259/0.5124, allocations: 143.1 kB / 396.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008395/0.5132, allocations: 268.8 kB / 396.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/0.5169, allocations: 4.32 MB / 400.8 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.5183, allocations: 67.84 kB / 400.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.5184, allocations: 55.12 kB / 400.9 MB, free: 13.9 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00101/0.5194, allocations: 355.5 kB / 401.3 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004172/0.5198, allocations: 138.3 kB / 401.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.5218, allocations: 0.8717 MB / 402.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.5218, allocations: 7.312 kB / 402.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5218, allocations: 0 / 402.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.5218, allocations: 10.48 kB / 402.3 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004774/0.5266, allocations: 2.369 MB / 404.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.5267, allocations: 3.344 kB / 404.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005636/0.5272, allocations: 132.9 kB / 404.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004886/0.5277, allocations: 145.6 kB / 404.9 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.5278, allocations: 18.39 kB / 405 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/0.5319, allocations: 4.458 MB / 409.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.5319, allocations: 7.969 kB / 409.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002717/0.5346, allocations: 1.347 MB / 410.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009535/0.5356, allocations: 271.4 kB / 411 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000535/0.5361, allocations: 23.98 kB / 411.1 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009679/0.5371, allocations: 51.92 kB / 411.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.5373, allocations: 58.3 kB / 411.2 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.365e-05/0.5373, allocations: 24 kB / 411.2 MB, free: 5.438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001912/0.5392, allocations: 0.8664 MB / 412 MB, free: 4.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5393, allocations: 3.938 kB / 412.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002087/0.5413, allocations: 324 kB / 412.4 MB, free: 4.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003006/0.5444, allocations: 1.932 MB / 414.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.5465, allocations: 1.134 MB / 415.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.5465, allocations: 4.062 kB / 415.4 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.5475, allocations: 0.7148 MB / 416.2 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.5497, allocations: 352.8 kB / 416.5 MB, free: 64 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01804/0.5678, allocations: 8.978 MB / 425.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009429/0.5688, allocations: 1.216 MB / 426.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008178/0.5696, allocations: 167.6 kB / 426.9 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007902/0.5704, allocations: 0.6125 MB / 427.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5704, allocations: 4 kB / 427.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05755/0.628, allocations: 28.63 MB / 456.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.6282, allocations: 241.4 kB / 456.3 MB, free: 8.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.735/3.363, allocations: 0 / 456.3 MB, free: 8.113 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat