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.0009073/0.0009073, allocations: 89.31 kB / 16.3 MB, free: 5.656 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.0009285/0.0009285, allocations: 184 kB / 17.2 MB, free: 5.59 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.398/1.398, allocations: 223.2 MB / 241.1 MB, free: 14.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002996, allocations: 8 kB / 300.8 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1262, allocations: 50.42 MB / 351.2 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01653/0.1427, allocations: 14.96 MB / 366.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2893/0.4321, allocations: 5.534 MB / 371.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004948/0.4371, allocations: 61.06 kB / 371.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006162/0.4433, allocations: 1.072 MB / 372.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008153/0.4515, allocations: 1.255 MB / 374.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002974/0.4545, allocations: 428.5 kB / 374.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01087/0.4654, allocations: 2.788 MB / 377.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002792/0.4682, allocations: 1.156 MB / 378.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003544/0.4718, allocations: 1.144 MB / 379.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004104/0.4759, allocations: 1.274 MB / 380.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006683/0.4766, allocations: 166.3 kB / 381.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00163/0.4783, allocations: 209.2 kB / 381.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004977/0.4788, allocations: 492.8 kB / 381.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.4799, allocations: 0.6351 MB / 382.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004265/0.4842, allocations: 3.569 MB / 386 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4842, allocations: 0 / 386 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4842, allocations: 0 / 386 MB, free: 9.141 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001114/0.4843, allocations: 5.125 kB / 386 MB, free: 9.137 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.006568/0.4909, allocations: 2.827 MB / 388.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.491, allocations: 9.688 kB / 388.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006024/0.4916, allocations: 356.2 kB / 389.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001954/0.4936, allocations: 480.9 kB / 389.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003366/0.4969, allocations: 1.678 MB / 391.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.4971, allocations: 197.5 kB / 391.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003491/0.4974, allocations: 268.6 kB / 391.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004559/0.502, allocations: 2.429 MB / 394.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.612e-05/0.5021, allocations: 11.88 kB / 394.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.5023, allocations: 109.4 kB / 394.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-05/0.5024, allocations: 63.81 kB / 394.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/0.5057, allocations: 1.635 MB / 396 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01511/0.5209, allocations: 10.65 MB / 406.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.5224, allocations: 1.057 MB / 407.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.5224, allocations: 12.59 kB / 407.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.5225, allocations: 39.22 kB / 407.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 3.517e-06/0.5225, allocations: 0 / 407.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.006024/0.5285, allocations: 2.953 MB / 410.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.5286, allocations: 163.2 kB / 410.9 MB, free: 8.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003283/0.5319, allocations: 2.143 MB / 413 MB, free: 6.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.767e-05/0.532, allocations: 41.7 kB / 413 MB, free: 6.297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/0.5336, allocations: 1.471 MB / 414.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.5339, allocations: 333.7 kB / 414.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.17e-05/0.534, allocations: 36 kB / 414.9 MB, free: 4.457 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.5342, allocations: 381.9 kB / 415.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007053/0.5349, allocations: 359.8 kB / 415.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.5364, allocations: 1.226 MB / 416.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.5374, allocations: 0.5821 MB / 417.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/0.5374, allocations: 8 kB / 417.4 MB, free: 1.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003337/0.5408, allocations: 1.831 MB / 419.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.005562/0.5464, allocations: 12.29 MB / 431.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.14e-05/0.5465, allocations: 28 kB / 431.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007861/0.5472, allocations: 159.4 kB / 431.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.5487, allocations: 415.2 kB / 432.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004228/0.553, allocations: 5.384 MB / 437.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/0.5554, allocations: 100.1 kB / 437.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/0.5556, allocations: 92 kB / 437.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.5556, allocations: 9.688 kB / 437.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002568/0.5582, allocations: 1.574 MB / 439.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/0.5582, allocations: 36.14 kB / 439.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004408/0.5587, allocations: 151.8 kB / 439.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.5598, allocations: 411.2 kB / 439.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/0.5637, allocations: 5.379 MB / 445.2 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/0.5659, allocations: 87.88 kB / 445.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.566, allocations: 88 kB / 445.4 MB, free: 3.047 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.001502/0.5675, allocations: 0.5864 MB / 446 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004061/0.5679, allocations: 233.1 kB / 446.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/0.5696, allocations: 0.9224 MB / 447.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.5696, allocations: 12 kB / 447.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.5697, allocations: 4 kB / 447.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.5697, allocations: 3.984 kB / 447.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005344/0.575, allocations: 3.102 MB / 450.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/0.575, allocations: 4 kB / 450.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005962/0.5757, allocations: 166.4 kB / 450.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004273/0.5761, allocations: 127.8 kB / 450.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.636e-05/0.5762, allocations: 24 kB / 450.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004067/0.5802, allocations: 5.34 MB / 455.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.373e-06/0.5803, allocations: 11.94 kB / 455.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002938/0.5832, allocations: 1.959 MB / 457.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.5844, allocations: 378.2 kB / 458.3 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002692/0.5846, allocations: 24 kB / 458.3 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008924/0.5855, allocations: 63.95 kB / 458.4 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.5857, allocations: 68.38 kB / 458.4 MB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.841e-05/0.5858, allocations: 35.98 kB / 458.5 MB, free: 5.027 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002414/0.5882, allocations: 1.407 MB / 459.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5882, allocations: 0 / 459.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003814/0.592, allocations: 0.9297 MB / 460.8 MB, free: 2.68 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.003746/0.5958, allocations: 4.035 MB / 464.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004971/0.6008, allocations: 2.696 MB / 467.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/0.6008, allocations: 4 kB / 467.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.602, allocations: 0.8168 MB / 468.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/0.6055, allocations: 0.5655 MB / 468.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03916/0.6447, allocations: 34.22 MB / 0.4913 GB, free: 6.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.6461, allocations: 1.624 MB / 0.4929 GB, free: 4.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001785/0.6479, allocations: 323.2 kB / 0.4932 GB, free: 4.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/0.6492, allocations: 1.054 MB / 0.4943 GB, free: 3.258 MB / 414.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6492, allocations: 0 / 0.4943 GB, free: 3.258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2885/0.9378, allocations: 45.64 MB / 0.5388 GB, free: 149.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/0.938, allocations: 232.3 kB / 0.5391 GB, free: 149 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.191/4.129, allocations: 0.625 kB / 0.5391 GB, free: 149 MB / 446.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