Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.001189/0.001189, 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.0008751/0.0008751, 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.8886/0.8886, allocations: 177.1 MB / 204.3 MB, free: 5.734 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_Temperature,fileNamePrefix="Modelica_4_1_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_1_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.402e-06/1.402e-06, allocations: 3.938 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.56e-05/1.7e-05, allocations: 4.531 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.005662/0.005679, allocations: 7.076 MB / 331.7 MB, free: 8.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.008547, allocations: 2.493 MB / 334.1 MB, free: 6.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003769/0.008924, allocations: 23.94 kB / 334.2 MB, free: 6.297 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008493/0.009773, allocations: 492.8 kB / 334.6 MB, free: 5.812 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005815/0.01035, allocations: 448.5 kB / 335.1 MB, free: 5.371 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.01063, allocations: 223.5 kB / 335.3 MB, free: 5.152 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007928/0.01143, allocations: 1.295 MB / 336.6 MB, free: 3.852 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003852/0.01181, allocations: 342.4 kB / 336.9 MB, free: 3.496 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005935/0.01241, allocations: 0.7327 MB / 337.7 MB, free: 2.762 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.01272, allocations: 382.8 kB / 338 MB, free: 2.387 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.166e-05/0.0128, allocations: 112 kB / 338.2 MB, free: 2.277 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.01298, allocations: 159.9 kB / 338.3 MB, free: 2.121 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003678/0.01335, allocations: 247 kB / 338.5 MB, free: 1.879 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.01358, allocations: 391.1 kB / 338.9 MB, free: 1.496 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009544/0.01453, allocations: 1.464 MB / 340.4 MB, free: 24 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.01453, allocations: 0 / 340.4 MB, free: 24 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01454, allocations: 0 / 340.4 MB, free: 24 kB / 298.7 MB Notification: Performance of Transformations before backend: time 9.819e-06/0.01455, allocations: 0 / 340.4 MB, free: 24 kB / 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.001334/0.01588, allocations: 1.251 MB / 341.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.01592, allocations: 16.03 kB / 341.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.01603, allocations: 127.5 kB / 341.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003763/0.0164, allocations: 176.2 kB / 342 MB, free: 14.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007111/0.01711, allocations: 0.5835 MB / 342.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.01715, allocations: 66.38 kB / 342.6 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.892e-05/0.01723, allocations: 84.38 kB / 342.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008551/0.01808, allocations: 0.8687 MB / 343.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.01811, allocations: 11.94 kB / 343.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.355e-05/0.01815, allocations: 36 kB / 343.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.01816, allocations: 20 kB / 343.6 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006838/0.01885, allocations: 0.5387 MB / 344.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.02166, allocations: 3.06 MB / 347.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/0.02203, allocations: 234.6 kB / 347.5 MB, free: 8.652 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.02217, allocations: 108.8 kB / 347.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.02219, allocations: 7.938 kB / 347.6 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.02221, allocations: 38.55 kB / 347.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 1.764e-06/0.02222, allocations: 0 / 347.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.00129/0.02351, allocations: 0.9482 MB / 348.6 MB, free: 7.504 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.02355, allocations: 77.11 kB / 348.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006398/0.02419, allocations: 0.7856 MB / 349.4 MB, free: 6.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.0242, allocations: 33.7 kB / 349.4 MB, free: 6.574 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.02444, allocations: 0.5228 MB / 350 MB, free: 6.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.581e-05/0.0245, allocations: 111.1 kB / 350.1 MB, free: 5.934 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.0246, allocations: 122.2 kB / 350.2 MB, free: 5.809 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.02471, allocations: 386.7 kB / 350.6 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.02488, allocations: 129.2 kB / 350.7 MB, free: 5.297 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.02518, allocations: 472.2 kB / 351.2 MB, free: 4.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005028/0.02568, allocations: 0.6176 MB / 351.8 MB, free: 3.914 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.02568, allocations: 4 kB / 351.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008906/0.02658, allocations: 0.6465 MB / 352.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.02659, allocations: 12 kB / 352.4 MB, free: 3.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.0266, allocations: 8 kB / 352.4 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001225/0.02672, allocations: 36.84 kB / 352.5 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.02698, allocations: 156.2 kB / 352.6 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000677/0.02766, allocations: 1.279 MB / 353.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.02791, allocations: 43.94 kB / 354 MB, free: 1.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.02794, allocations: 35.98 kB / 354 MB, free: 1.57 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.0002211/0.02816, allocations: 245.6 kB / 354.2 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.244e-05/0.02822, allocations: 79.48 kB / 354.3 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004046/0.02863, allocations: 329.9 kB / 354.6 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.02863, allocations: 4 kB / 354.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.02864, allocations: 0 / 354.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.02864, allocations: 0 / 354.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.02964, allocations: 1.034 MB / 355.7 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.02964, allocations: 0 / 355.7 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.0298, allocations: 63.95 kB / 355.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-05/0.02986, allocations: 32.78 kB / 355.8 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.02987, allocations: 12.22 kB / 355.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005517/0.03042, allocations: 1.267 MB / 357 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.03043, allocations: 7.969 kB / 357.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005238/0.03095, allocations: 0.5679 MB / 357.6 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.03109, allocations: 99.44 kB / 357.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.03113, allocations: 11.94 kB / 357.7 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.0313, allocations: 19.98 kB / 357.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.03135, allocations: 27.95 kB / 357.8 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.03136, allocations: 11.94 kB / 357.8 MB, free: 13.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004372/0.0318, allocations: 0.5224 MB / 358.3 MB, free: 13 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0318, allocations: 0 / 358.3 MB, free: 13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004287/0.03223, allocations: 172 kB / 358.5 MB, free: 12.83 MB / 330.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.001044/0.03327, allocations: 1.134 MB / 359.6 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.03383, allocations: 467.9 kB / 360.1 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.03383, allocations: 4 kB / 360.1 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.03404, allocations: 239.8 kB / 360.3 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.03461, allocations: 187.3 kB / 360.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006607/0.04122, allocations: 6.452 MB / 366.9 MB, free: 3.863 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.04146, allocations: 361.3 kB / 367.3 MB, free: 3.484 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002591/0.04172, allocations: 94.16 kB / 367.4 MB, free: 3.391 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002616/0.04198, allocations: 324.3 kB / 367.7 MB, free: 3.074 MB / 330.7 MB Notification: Performance of SimCode: time 1.402e-06/0.04198, allocations: 0 / 367.7 MB, free: 3.074 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.07642, allocations: 17.66 MB / 385.4 MB, free: 1.691 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/7.811, allocations: 7.188 kB / 385.4 MB, free: 1.691 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.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: 10.136396852321923]