Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001255/0.001255, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.007514/0.007514, allocations: 161.6 kB / 24.69 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8349/0.8349, allocations: 158.6 MB / 186.5 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.339e-05/1.509e-05, allocations: 2.281 kB / 298.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.127/0.1271, allocations: 10.49 MB / 308.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004763/0.1318, allocations: 3.151 MB / 312.1 MB, free: 7.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.1331, allocations: 43.94 kB / 312.1 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001485/0.1346, allocations: 0.6368 MB / 312.8 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001797/0.1364, allocations: 0.8216 MB / 313.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007303/0.1372, allocations: 405.3 kB / 314 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002431/0.1396, allocations: 2.52 MB / 316.5 MB, free: 5.246 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000866/0.1405, allocations: 0.6026 MB / 317.1 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/0.1424, allocations: 1.399 MB / 318.5 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.1434, allocations: 0.7094 MB / 319.2 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003691/0.1437, allocations: 229 kB / 319.4 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.1442, allocations: 273.7 kB / 319.7 MB, free: 3.934 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.1444, allocations: 462.9 kB / 320.2 MB, free: 3.59 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.1454, allocations: 0.7397 MB / 320.9 MB, free: 3.238 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002431/0.1479, allocations: 2.847 MB / 323.7 MB, free: 1.578 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1479, allocations: 4 kB / 323.7 MB, free: 1.574 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1479, allocations: 0 / 323.7 MB, free: 1.574 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.621e-05/0.1479, allocations: 0.875 kB / 323.7 MB, free: 1.574 MB / 282.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.003184/0.1511, allocations: 2.111 MB / 325.9 MB, free: 20 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.1512, allocations: 13.17 kB / 325.9 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003145/0.1515, allocations: 225.5 kB / 326.1 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009262/0.1524, allocations: 291.9 kB / 326.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002145/0.1546, allocations: 1.052 MB / 327.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-05/0.1546, allocations: 114.4 kB / 327.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.1549, allocations: 168.8 kB / 327.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002826/0.1577, allocations: 1.603 MB / 329.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.203e-05/0.1578, allocations: 14.84 kB / 329.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.1579, allocations: 62.47 kB / 329.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.304e-05/0.1579, allocations: 39.12 kB / 329.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.1601, allocations: 1.048 MB / 330.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007929/0.168, allocations: 5.627 MB / 336.1 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.1693, allocations: 0.5724 MB / 336.7 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007776/0.1701, allocations: 422.6 kB / 337.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.1701, allocations: 12.59 kB / 337.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.1702, allocations: 43.16 kB / 337.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 3.056e-06/0.1702, allocations: 0 / 337.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.004515/0.1747, allocations: 2.17 MB / 339.3 MB, free: 5.391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1747, allocations: 115.5 kB / 339.4 MB, free: 5.254 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.1765, allocations: 1.333 MB / 340.8 MB, free: 3.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.1765, allocations: 37.7 kB / 340.8 MB, free: 3.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/0.1771, allocations: 0.8633 MB / 341.7 MB, free: 2.988 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.1773, allocations: 277.6 kB / 341.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/0.1776, allocations: 206.8 kB / 342.1 MB, free: 2.508 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1777, allocations: 349.9 kB / 342.5 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005132/0.1782, allocations: 286.5 kB / 342.7 MB, free: 1.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007791/0.179, allocations: 0.7848 MB / 343.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.1801, allocations: 1.092 MB / 344.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.1801, allocations: 8 kB / 344.6 MB, free: 15.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001508/0.1816, allocations: 1.26 MB / 345.9 MB, free: 14.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.1816, allocations: 8 kB / 345.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.1816, allocations: 16 kB / 345.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003649/0.182, allocations: 138.9 kB / 346.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004662/0.1825, allocations: 255.6 kB / 346.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/0.1852, allocations: 4.307 MB / 350.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008053/0.186, allocations: 55.94 kB / 350.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.056e-05/0.1861, allocations: 55.98 kB / 350.7 MB, free: 9.105 MB / 314.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.0005093/0.1866, allocations: 361.5 kB / 351.1 MB, free: 8.742 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.1867, allocations: 147.1 kB / 351.2 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.1877, allocations: 0.8217 MB / 352 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1878, allocations: 8 kB / 352 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1878, allocations: 0 / 352 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.1878, allocations: 11.86 kB / 352.1 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002525/0.1903, allocations: 2.126 MB / 354.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1903, allocations: 4 kB / 354.2 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.1906, allocations: 127.8 kB / 354.3 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002597/0.1908, allocations: 138.8 kB / 354.4 MB, free: 5.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.1909, allocations: 19.98 kB / 354.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002445/0.1933, allocations: 4.45 MB / 358.9 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1933, allocations: 7.938 kB / 358.9 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.1948, allocations: 1.301 MB / 360.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003791/0.1951, allocations: 211 kB / 360.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.123e-05/0.1952, allocations: 23.94 kB / 360.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/0.1955, allocations: 39.97 kB / 360.5 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.818e-05/0.1956, allocations: 60.33 kB / 360.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.1957, allocations: 31.92 kB / 360.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001146/0.1968, allocations: 0.8781 MB / 361.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1968, allocations: 0 / 361.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009479/0.1978, allocations: 331.9 kB / 361.8 MB, free: 13.47 MB / 330.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.001809/0.1996, allocations: 1.866 MB / 363.7 MB, free: 11.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.2009, allocations: 1.089 MB / 364.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.2009, allocations: 0 / 364.7 MB, free: 10.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009033/0.2018, allocations: 0.6872 MB / 365.4 MB, free: 9.672 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.2029, allocations: 384.5 kB / 365.8 MB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/0.2174, allocations: 11.63 MB / 377.4 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.2179, allocations: 0.6302 MB / 378.1 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005024/0.2184, allocations: 175.6 kB / 378.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000767/0.2192, allocations: 0.6136 MB / 378.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2192, allocations: 0 / 378.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05168/0.2708, allocations: 33.71 MB / 412.6 MB, free: 9.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.072/9.343, allocations: 3.938 kB / 412.6 MB, free: 9.676 MB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_3.2.3_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.523699761368334]