Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.882/0.882, allocations: 173.3 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.337e-05/1.5e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.00557/0.005585, allocations: 7.039 MB / 325.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002366/0.007951, allocations: 2.446 MB / 327.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002851/0.008237, allocations: 31.81 kB / 328 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007778/0.009014, allocations: 492.8 kB / 328.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.009478, allocations: 444.5 kB / 328.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.009843, allocations: 231.5 kB / 329.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007311/0.01057, allocations: 1.279 MB / 330.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.01095, allocations: 358.4 kB / 330.7 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004859/0.01144, allocations: 0.7248 MB / 331.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003418/0.01178, allocations: 382.8 kB / 331.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.481e-05/0.01187, allocations: 112 kB / 331.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.01202, allocations: 152 kB / 332.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.01213, allocations: 243.1 kB / 332.3 MB, free: 8.387 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.01235, allocations: 395.1 kB / 332.7 MB, free: 8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008893/0.01324, allocations: 1.464 MB / 334.2 MB, free: 6.531 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.01324, allocations: 0 / 334.2 MB, free: 6.531 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01324, allocations: 0 / 334.2 MB, free: 6.531 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.01325, allocations: 0 / 334.2 MB, free: 6.531 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001279/0.01453, allocations: 1.251 MB / 335.4 MB, free: 5.246 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.01456, allocations: 8.922 kB / 335.4 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.01467, allocations: 135.5 kB / 335.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.01493, allocations: 156.2 kB / 335.7 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007835/0.01572, allocations: 0.5796 MB / 336.3 MB, free: 4.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.01575, allocations: 62.38 kB / 336.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.798e-05/0.01583, allocations: 88.36 kB / 336.4 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008663/0.0167, allocations: 0.8726 MB / 337.3 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.01672, allocations: 7.953 kB / 337.3 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.373e-05/0.01676, allocations: 32 kB / 337.4 MB, free: 3.238 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.01678, allocations: 27.94 kB / 337.4 MB, free: 3.211 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006749/0.01745, allocations: 0.5387 MB / 337.9 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.01994, allocations: 3.064 MB / 341 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.02029, allocations: 234.5 kB / 341.2 MB, free: 15.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.02043, allocations: 104.8 kB / 341.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.02045, allocations: 4 kB / 341.3 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.02047, allocations: 38.56 kB / 341.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.542e-06/0.02047, allocations: 0 / 341.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001227/0.0217, allocations: 0.9419 MB / 342.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.02174, allocations: 85.05 kB / 342.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006202/0.02236, allocations: 0.7779 MB / 343.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.02237, allocations: 33.7 kB / 343.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004082/0.02278, allocations: 0.5306 MB / 343.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.535e-05/0.02284, allocations: 111 kB / 343.8 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.02294, allocations: 122.2 kB / 344 MB, free: 12.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.02305, allocations: 390.7 kB / 344.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.02323, allocations: 129.2 kB / 344.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/0.02354, allocations: 472.2 kB / 344.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005059/0.02405, allocations: 0.6101 MB / 345.5 MB, free: 10.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.02405, allocations: 4 kB / 345.5 MB, free: 10.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0006654/0.02471, allocations: 0.6505 MB / 346.2 MB, free: 9.777 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.02473, allocations: 14.97 kB / 346.2 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.02474, allocations: 12.09 kB / 346.2 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001033/0.02484, allocations: 36.84 kB / 346.3 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.02509, allocations: 155.7 kB / 346.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000642/0.02574, allocations: 1.275 MB / 347.7 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.02598, allocations: 44.09 kB / 347.7 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.026, allocations: 28 kB / 347.8 MB, free: 8.102 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002088/0.02621, allocations: 249.5 kB / 348 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.02627, allocations: 79.56 kB / 348.1 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004135/0.02669, allocations: 330 kB / 348.4 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.02669, allocations: 4 kB / 348.4 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.02669, allocations: 3.938 kB / 348.4 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.0267, allocations: 0 / 348.4 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.02771, allocations: 1.026 MB / 349.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.02771, allocations: 4.031 kB / 349.4 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.02786, allocations: 63.89 kB / 349.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.974e-05/0.02791, allocations: 20.86 kB / 349.5 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.02793, allocations: 11.98 kB / 349.5 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006718/0.0286, allocations: 1.271 MB / 350.8 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.0286, allocations: 16.06 kB / 350.8 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.02913, allocations: 0.565 MB / 351.4 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.02926, allocations: 107.5 kB / 351.5 MB, free: 4.113 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.368e-05/0.0293, allocations: 11.94 kB / 351.5 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.02948, allocations: 23.98 kB / 351.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.02953, allocations: 23.95 kB / 351.5 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.02954, allocations: 8 kB / 351.5 MB, free: 4.047 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004394/0.02998, allocations: 0.5186 MB / 352.1 MB, free: 3.531 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02998, allocations: 0 / 352.1 MB, free: 3.531 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004043/0.03038, allocations: 172 kB / 352.2 MB, free: 3.363 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008157/0.0312, allocations: 1.133 MB / 353.4 MB, free: 2.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005689/0.03177, allocations: 472.4 kB / 353.8 MB, free: 1.707 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.03177, allocations: 4 kB / 353.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.03197, allocations: 247.2 kB / 354.1 MB, free: 1.449 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.03252, allocations: 178.7 kB / 354.3 MB, free: 1.277 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006135/0.03866, allocations: 6.459 MB / 360.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.03888, allocations: 361.3 kB / 361.1 MB, free: 10.01 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.03908, allocations: 98.11 kB / 361.2 MB, free: 9.914 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.03934, allocations: 320.4 kB / 361.5 MB, free: 9.598 MB / 330.7 MB Notification: Performance of SimCode: time 7.42e-07/0.03934, allocations: 0 / 361.5 MB, free: 9.598 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.06765, allocations: 17.64 MB / 379.1 MB, free: 8.215 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/7.634, allocations: 7.859 kB / 379.1 MB, free: 8.207 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 9.946072960272431]