Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.0008528/0.000853, allocations: 89.03 kB / 16.31 MB, free: 5.676 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.0009832/0.0009832, allocations: 176.9 kB / 17.2 MB, free: 5.594 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.403/1.403, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003915, allocations: 9.094 kB / 300.9 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1222, allocations: 50.42 MB / 351.4 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01151/0.1338, allocations: 10.38 MB / 361.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006808/0.1406, allocations: 3.037 MB / 364.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.1421, allocations: 39.88 kB / 364.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001729/0.1439, allocations: 0.5164 MB / 365.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001964/0.1459, allocations: 0.5545 MB / 365.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009132/0.1468, allocations: 235.8 kB / 366.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002803/0.1496, allocations: 2.019 MB / 368.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.1508, allocations: 0.6791 MB / 368.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.152, allocations: 0.6689 MB / 369.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009421/0.1529, allocations: 0.7504 MB / 370.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.1531, allocations: 100 kB / 370.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003467/0.1535, allocations: 140 kB / 370.5 MB, free: 476 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002873/0.1538, allocations: 290.6 kB / 370.7 MB, free: 184 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2207/0.3744, allocations: 381.5 kB / 371.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004335/0.3788, allocations: 2.104 MB / 373.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.3789, allocations: 0 / 373.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.3789, allocations: 0.6562 kB / 373.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.825e-05/0.379, allocations: 1.031 kB / 373.2 MB, free: 12.25 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004425/0.3834, allocations: 1.77 MB / 375 MB, free: 11.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.3835, allocations: 9.375 kB / 375 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004694/0.3839, allocations: 224.6 kB / 375.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009781/0.3849, allocations: 257.4 kB / 375.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.3871, allocations: 0.9893 MB / 376.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.3872, allocations: 113.5 kB / 376.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002441/0.3874, allocations: 158.7 kB / 376.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003054/0.3905, allocations: 1.483 MB / 378.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.609e-05/0.3906, allocations: 8.688 kB / 378.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/0.3907, allocations: 66.95 kB / 378.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-05/0.3908, allocations: 41.41 kB / 378.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002432/0.3932, allocations: 0.9766 MB / 379.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009631/0.4029, allocations: 6.595 MB / 385.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008352/0.4037, allocations: 406.7 kB / 386.3 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004148/0.4042, allocations: 231.6 kB / 386.5 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.155e-05/0.4042, allocations: 5.531 kB / 386.5 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005385/0.4048, allocations: 275.4 kB / 386.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.094e-06/0.4048, allocations: 0 / 386.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003867/0.4087, allocations: 1.777 MB / 388.6 MB, free: 6.254 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/0.4087, allocations: 161.4 kB / 388.7 MB, free: 6.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002576/0.4113, allocations: 1.275 MB / 390 MB, free: 5.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/0.4114, allocations: 35.73 kB / 390 MB, free: 5.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.4125, allocations: 0.8665 MB / 390.9 MB, free: 5.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.4127, allocations: 209.3 kB / 391.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.449e-05/0.4128, allocations: 29.12 kB / 391.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.4129, allocations: 350.5 kB / 391.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006243/0.4136, allocations: 234.3 kB / 391.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.4146, allocations: 0.8065 MB / 392.5 MB, free: 3.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007769/0.4154, allocations: 391.2 kB / 392.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/0.4154, allocations: 5.5 kB / 392.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002414/0.4178, allocations: 1.172 MB / 394.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.185e-05/0.4179, allocations: 50.89 kB / 394.1 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-05/0.4179, allocations: 18.75 kB / 394.1 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.4182, allocations: 67.08 kB / 394.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008377/0.4191, allocations: 269.2 kB / 394.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.4206, allocations: 2.576 MB / 397.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.4218, allocations: 70.66 kB / 397.1 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.876e-05/0.4219, allocations: 64.31 kB / 397.2 MB, free: 460 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000827/0.4228, allocations: 352 kB / 397.5 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.4229, allocations: 142.2 kB / 397.7 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/0.424, allocations: 0.5541 MB / 398.2 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.424, allocations: 8.891 kB / 398.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4241, allocations: 2.781 kB / 398.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4241, allocations: 0 / 398.2 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/0.4273, allocations: 1.883 MB / 400.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.4273, allocations: 5.531 kB / 400.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004552/0.4278, allocations: 110.2 kB / 400.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.4279, allocations: 47.58 kB / 400.3 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.428, allocations: 19.27 kB / 400.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.4298, allocations: 2.553 MB / 402.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.4298, allocations: 4.125 kB / 402.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.4314, allocations: 0.94 MB / 403.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005638/0.432, allocations: 259.1 kB / 404 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.4322, allocations: 15.41 kB / 404.1 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/0.4327, allocations: 42.38 kB / 404.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4328, allocations: 53.42 kB / 404.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-05/0.4329, allocations: 18.59 kB / 404.2 MB, free: 10.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001288/0.4342, allocations: 0.8357 MB / 405 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4342, allocations: 0 / 405 MB, free: 10.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001367/0.4355, allocations: 303.2 kB / 405.3 MB, free: 10.31 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001912/0.4375, allocations: 1.502 MB / 406.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.4391, allocations: 0.9389 MB / 407.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.4392, allocations: 7.031 kB / 407.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000739/0.4399, allocations: 477 kB / 408.2 MB, free: 8.305 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.4417, allocations: 316.3 kB / 408.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.4581, allocations: 8.054 MB / 416.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009809/0.4591, allocations: 1.174 MB / 417.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008733/0.46, allocations: 171.3 kB / 417.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007084/0.4607, allocations: 0.5735 MB / 418.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4607, allocations: 0 / 418.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05856/0.5193, allocations: 25.63 MB / 444.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/0.5195, allocations: 226.7 kB / 444.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/3.089, allocations: 0 / 444.3 MB, free: 4.402 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat