Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009818/0.0009818, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008536/0.0008536, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9046/0.9046, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.051e-05, allocations: 8.891 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007833/0.007854, allocations: 10.59 MB / 335.2 MB, free: 5.273 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.01275, allocations: 3.14 MB / 338.3 MB, free: 2.125 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.01378, allocations: 39.88 kB / 338.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.01507, allocations: 0.6438 MB / 339 MB, free: 1.438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001629/0.0167, allocations: 0.8257 MB / 339.8 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005897/0.01729, allocations: 407.4 kB / 340.2 MB, free: 208 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.01925, allocations: 2.52 MB / 342.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006724/0.01992, allocations: 0.6037 MB / 343.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.02121, allocations: 1.395 MB / 344.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.02177, allocations: 0.7126 MB / 345.4 MB, free: 10.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000165/0.02193, allocations: 232 kB / 345.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002721/0.0222, allocations: 271.9 kB / 345.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.02241, allocations: 466.2 kB / 346.4 MB, free: 9.957 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004402/0.02285, allocations: 0.7365 MB / 347.1 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001735/0.02458, allocations: 2.843 MB / 350 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.02459, allocations: 0 / 350 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.02459, allocations: 0 / 350 MB, free: 6.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.931e-05/0.02464, allocations: 0 / 350 MB, free: 6.367 MB / 314.7 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.002678/0.02732, allocations: 2.118 MB / 352.1 MB, free: 4.207 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.02736, allocations: 8.031 kB / 352.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.02755, allocations: 224.1 kB / 352.3 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004795/0.02803, allocations: 291.5 kB / 352.6 MB, free: 3.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.02934, allocations: 1.043 MB / 353.6 MB, free: 2.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.837e-05/0.0294, allocations: 119.5 kB / 353.8 MB, free: 2.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/0.02955, allocations: 160.3 kB / 353.9 MB, free: 2.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.03131, allocations: 1.616 MB / 355.5 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/0.03134, allocations: 4 kB / 355.5 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.245e-05/0.03142, allocations: 64 kB / 355.6 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.03144, allocations: 36 kB / 355.6 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.03275, allocations: 1.045 MB / 356.7 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006231/0.03898, allocations: 5.654 MB / 362.3 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.04019, allocations: 0.5663 MB / 362.9 MB, free: 8.949 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007363/0.04092, allocations: 426.5 kB / 363.3 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.04096, allocations: 8.656 kB / 363.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.04099, allocations: 43.16 kB / 363.4 MB, free: 8.465 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.096e-06/0.04099, allocations: 0 / 363.4 MB, free: 8.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.004051/0.04505, allocations: 2.177 MB / 365.5 MB, free: 6.254 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.04511, allocations: 111.5 kB / 365.7 MB, free: 6.121 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.04646, allocations: 1.329 MB / 367 MB, free: 4.777 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.718e-05/0.0465, allocations: 45.64 kB / 367 MB, free: 4.727 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004077/0.04691, allocations: 0.8633 MB / 367.9 MB, free: 3.855 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.04704, allocations: 273.6 kB / 368.2 MB, free: 3.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.04723, allocations: 202.8 kB / 368.4 MB, free: 3.383 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.015e-05/0.04732, allocations: 353.9 kB / 368.7 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/0.04776, allocations: 282.5 kB / 369 MB, free: 2.754 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005532/0.04831, allocations: 0.7926 MB / 369.8 MB, free: 1.734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009627/0.04927, allocations: 1.077 MB / 370.8 MB, free: 460 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.04928, allocations: 4 kB / 370.8 MB, free: 456 kB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001421/0.0507, allocations: 1.269 MB / 372.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.05072, allocations: 12 kB / 372.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.05074, allocations: 16 kB / 372.1 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003076/0.05105, allocations: 142.5 kB / 372.3 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.05149, allocations: 255.7 kB / 372.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/0.05392, allocations: 4.301 MB / 376.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.05442, allocations: 60.12 kB / 376.9 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.695e-05/0.05447, allocations: 52 kB / 376.9 MB, free: 9.977 MB / 346.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003902/0.05486, allocations: 357.3 kB / 377.3 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.05498, allocations: 147 kB / 377.4 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.05603, allocations: 0.8218 MB / 378.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.05603, allocations: 8 kB / 378.3 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.05603, allocations: 4 kB / 378.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.05604, allocations: 7.922 kB / 378.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00233/0.05837, allocations: 2.121 MB / 380.4 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.05838, allocations: 8.406 kB / 380.4 MB, free: 6.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/0.05867, allocations: 127.9 kB / 380.5 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002468/0.05891, allocations: 138.4 kB / 380.7 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.05895, allocations: 20.06 kB / 380.7 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002659/0.06161, allocations: 4.462 MB / 385.1 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.06161, allocations: 7.938 kB / 385.2 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.06305, allocations: 1.289 MB / 386.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003323/0.06338, allocations: 215 kB / 386.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.335e-05/0.06347, allocations: 23.94 kB / 386.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.06378, allocations: 43.91 kB / 386.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.0639, allocations: 64.33 kB / 386.8 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.06393, allocations: 27.94 kB / 386.8 MB, free: 15.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009324/0.06486, allocations: 0.882 MB / 387.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06486, allocations: 0 / 387.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009692/0.06583, allocations: 327.9 kB / 388 MB, free: 14.34 MB / 362.7 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002356/0.06819, allocations: 1.877 MB / 389.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.06973, allocations: 1.081 MB / 391 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.06973, allocations: 0 / 391 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008274/0.07056, allocations: 0.6916 MB / 391.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009444/0.07151, allocations: 361 kB / 392 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.08452, allocations: 11.63 MB / 403.6 MB, free: 13.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.08496, allocations: 0.6341 MB / 404.3 MB, free: 13.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004306/0.08539, allocations: 179.6 kB / 404.5 MB, free: 13.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.08588, allocations: 0.6174 MB / 405.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of SimCode: time 9.72e-07/0.08588, allocations: 4 kB / 405.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05027/0.1361, allocations: 33.72 MB / 438.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.845/8.981, allocations: 11.27 kB / 438.8 MB, free: 11.03 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcpm1.la.i,dcpm2.la.i,loadInertia1.phi,loadInertia1.w,loadInertia2.phi,loadInertia2.w Variables in the result:time,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque1.phi [Calling sys.exit(0), Time elapsed: 11.442534224130213]