Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",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.0007597/0.0007598, allocations: 88.16 kB / 16.31 MB, free: 5.602 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.0008407/0.0008408, allocations: 180.2 kB / 17.21 MB, free: 5.52 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.378/1.378, allocations: 223.2 MB / 241.2 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002777, allocations: 8 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1042, allocations: 50.42 MB / 351.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01702/0.1213, allocations: 16.74 MB / 368.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2135/0.3349, allocations: 5.345 MB / 373.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002795/0.3377, allocations: 63.38 kB / 373.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00388/0.3416, allocations: 1.058 MB / 374.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00428/0.3459, allocations: 0.9879 MB / 375.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.3476, allocations: 426.4 kB / 375.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007026/0.3546, allocations: 3.538 MB / 379.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002371/0.357, allocations: 1.161 MB / 380.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003507/0.3605, allocations: 1.158 MB / 381.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002819/0.3634, allocations: 1.304 MB / 383.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004711/0.3639, allocations: 173.8 kB / 383.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.3649, allocations: 213.1 kB / 383.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005011/0.3654, allocations: 0.4967 MB / 384 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.3667, allocations: 0.6375 MB / 384.6 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004034/0.3707, allocations: 3.64 MB / 388.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3707, allocations: 0 / 388.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3707, allocations: 0 / 388.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001106/0.3709, allocations: 0 / 388.3 MB, free: 7.508 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005936/0.3768, allocations: 2.83 MB / 391.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.3769, allocations: 10.16 kB / 391.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004562/0.3773, allocations: 362 kB / 391.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/0.379, allocations: 488.5 kB / 391.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/0.3819, allocations: 1.634 MB / 393.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.3821, allocations: 191.3 kB / 393.7 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003492/0.3824, allocations: 266.3 kB / 394 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004622/0.387, allocations: 2.458 MB / 396.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-05/0.3871, allocations: 15.5 kB / 396.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.3873, allocations: 113.3 kB / 396.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.328e-05/0.3874, allocations: 65.16 kB / 396.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.3902, allocations: 1.642 MB / 398.3 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.4027, allocations: 10.69 MB / 409 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.404, allocations: 1.066 MB / 410 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005738/0.4046, allocations: 363.2 kB / 410.4 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.4046, allocations: 13.34 kB / 410.4 MB, free: 7.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.4047, allocations: 47.88 kB / 410.5 MB, free: 7.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 3.176e-06/0.4047, allocations: 0 / 410.5 MB, free: 7.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.005542/0.4102, allocations: 2.956 MB / 413.4 MB, free: 4.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/0.4104, allocations: 171.1 kB / 413.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/0.4134, allocations: 2.182 MB / 415.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.989e-05/0.4135, allocations: 45.64 kB / 415.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.4146, allocations: 1.47 MB / 417.3 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002483/0.4149, allocations: 335.8 kB / 417.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.4149, allocations: 36 kB / 417.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4151, allocations: 369.9 kB / 418 MB, free: 128 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000665/0.4158, allocations: 367.8 kB / 418.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.4172, allocations: 1.237 MB / 419.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008993/0.4181, allocations: 0.577 MB / 420.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.459e-05/0.4181, allocations: 11.95 kB / 420.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002825/0.4209, allocations: 1.835 MB / 422 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006263/0.4216, allocations: 0.9622 MB / 423 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/0.4216, allocations: 28 kB / 423 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005135/0.4221, allocations: 163.4 kB / 423.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.4233, allocations: 411.2 kB / 423.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/0.427, allocations: 5.36 MB / 428.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.429, allocations: 103.9 kB / 429 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.4292, allocations: 88 kB / 429.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.4292, allocations: 4 kB / 429.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002431/0.4316, allocations: 1.58 MB / 430.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.03e-05/0.4317, allocations: 32 kB / 430.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000435/0.4321, allocations: 159.9 kB / 430.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.4332, allocations: 407.3 kB / 431.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.4368, allocations: 5.346 MB / 436.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.4387, allocations: 88.09 kB / 436.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.4389, allocations: 96 kB / 436.8 MB, free: 11.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * 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,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00135/0.4402, allocations: 0.5745 MB / 437.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004274/0.4406, allocations: 233.2 kB / 437.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.4423, allocations: 0.934 MB / 438.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.4423, allocations: 8 kB / 438.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4424, allocations: 4 kB / 438.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.639e-06/0.4424, allocations: 3.984 kB / 438.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005015/0.4474, allocations: 3.137 MB / 441.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.4474, allocations: 8.125 kB / 441.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005764/0.448, allocations: 163.9 kB / 441.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000403/0.4484, allocations: 123.4 kB / 442 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.998e-05/0.4485, allocations: 27.98 kB / 442 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003769/0.4523, allocations: 5.307 MB / 447.3 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.4523, allocations: 7.938 kB / 447.3 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.4548, allocations: 1.511 MB / 448.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.4558, allocations: 386.2 kB / 449.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.4561, allocations: 21.31 kB / 449.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008439/0.4569, allocations: 67.91 kB / 449.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.4571, allocations: 88.3 kB / 449.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.4571, allocations: 24 kB / 449.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002412/0.4595, allocations: 1.438 MB / 450.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4595, allocations: 0 / 450.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003242/0.4628, allocations: 0.9336 MB / 451.8 MB, free: 11.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * 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,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002599/0.4654, allocations: 2.105 MB / 453.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003992/0.4694, allocations: 2.698 MB / 456.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/0.4694, allocations: 4 kB / 456.6 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.4705, allocations: 0.8206 MB / 457.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/0.4736, allocations: 0.5731 MB / 458 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02667/0.5003, allocations: 14.41 MB / 472.4 MB, free: 5.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.5016, allocations: 1.567 MB / 474 MB, free: 3.547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00159/0.5032, allocations: 323.2 kB / 474.3 MB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/0.5046, allocations: 1.05 MB / 475.3 MB, free: 2.176 MB / 382.1 MB Notification: Performance of SimCode: time 1.203e-06/0.5046, allocations: 4 kB / 475.3 MB, free: 2.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0871/0.5917, allocations: 46.04 MB / 0.5092 GB, free: 4.684 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.5919, allocations: 239.5 kB / 0.5094 GB, free: 4.445 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.508/4.1, allocations: 4.062 kB / 0.5094 GB, free: 4.441 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat