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.001794/0.001794, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.002119/0.002119, allocations: 207.8 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001504/0.001504, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2521, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01001/0.2621, allocations: 7.074 MB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005075/0.2672, allocations: 2.474 MB / 440.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008811/0.2681, allocations: 23.94 kB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.2695, allocations: 486.8 kB / 441.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.2708, allocations: 436.8 kB / 441.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.2713, allocations: 215.6 kB / 441.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001462/0.2728, allocations: 1.233 MB / 443 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006161/0.2734, allocations: 374.5 kB / 443.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006769/0.2741, allocations: 0.4981 MB / 443.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005932/0.2747, allocations: 0.5134 MB / 444.4 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.2748, allocations: 112 kB / 444.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.2751, allocations: 164 kB / 444.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.2753, allocations: 235.1 kB / 444.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004503/0.2758, allocations: 465.9 kB / 445.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001623/0.2774, allocations: 1.486 MB / 446.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2774, allocations: 0 / 446.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2774, allocations: 0 / 446.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.2774, allocations: 3.938 kB / 446.8 MB, free: 6.836 MB / 350.1 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.002184/0.2796, allocations: 1.248 MB / 448.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2796, allocations: 12.03 kB / 448.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.2798, allocations: 131.5 kB / 448.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006573/0.2805, allocations: 180.2 kB / 448.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.2815, allocations: 0.5842 MB / 449 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.17e-05/0.2816, allocations: 70.12 kB / 449 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.2817, allocations: 84 kB / 449.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.2831, allocations: 0.8686 MB / 450 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.291e-05/0.2832, allocations: 11.89 kB / 450 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.959e-05/0.2832, allocations: 36 kB / 450 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.976e-05/0.2832, allocations: 20 kB / 450.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.2843, allocations: 0.5387 MB / 450.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004471/0.2888, allocations: 3.073 MB / 453.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/0.2893, allocations: 230.7 kB / 453.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.2896, allocations: 108.8 kB / 454 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.2896, allocations: 0 / 454 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.2896, allocations: 42.56 kB / 454 MB, free: 15.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.333e-06/0.2896, allocations: 0 / 454 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002176/0.2918, allocations: 0.9389 MB / 455 MB, free: 14.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.2919, allocations: 89.05 kB / 455.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.2929, allocations: 0.774 MB / 455.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.2929, allocations: 29.7 kB / 455.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.2934, allocations: 0.5305 MB / 456.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.2935, allocations: 115.1 kB / 456.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.2936, allocations: 118.2 kB / 456.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.2938, allocations: 382.8 kB / 457 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.2941, allocations: 133.2 kB / 457.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005891/0.2947, allocations: 472 kB / 457.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000891/0.2956, allocations: 0.6176 MB / 458.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.2956, allocations: 4 kB / 458.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00117/0.2968, allocations: 0.6546 MB / 458.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.2968, allocations: 11.94 kB / 458.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.2968, allocations: 12 kB / 458.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001611/0.297, allocations: 32.84 kB / 458.9 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004775/0.2974, allocations: 151.7 kB / 459.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.2986, allocations: 1.287 MB / 460.4 MB, free: 8.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.2991, allocations: 39.94 kB / 460.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.33e-05/0.2991, allocations: 32 kB / 460.4 MB, free: 8.379 MB / 366.1 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.000333/0.2994, allocations: 245.5 kB / 460.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.2996, allocations: 79.48 kB / 460.8 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006949/0.3002, allocations: 334 kB / 461.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3003, allocations: 4 kB / 461.1 MB, free: 7.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.3003, allocations: 7.922 kB / 461.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3003, allocations: 0 / 461.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.302, allocations: 1.019 MB / 462.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.302, allocations: 0 / 462.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.3023, allocations: 71.89 kB / 462.2 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.075e-05/0.3024, allocations: 20.86 kB / 462.2 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.3024, allocations: 8 kB / 462.2 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/0.3034, allocations: 1.271 MB / 463.5 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3034, allocations: 4 kB / 463.5 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.3044, allocations: 0.5721 MB / 464.1 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000242/0.3046, allocations: 107.6 kB / 464.2 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.138e-05/0.3047, allocations: 12 kB / 464.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.305, allocations: 15.98 kB / 464.2 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.146e-05/0.3051, allocations: 31.98 kB / 464.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.3051, allocations: 8 kB / 464.2 MB, free: 4.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006987/0.3058, allocations: 0.5185 MB / 464.7 MB, free: 3.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3058, allocations: 0 / 464.7 MB, free: 3.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006926/0.3065, allocations: 176 kB / 464.9 MB, free: 3.641 MB / 366.1 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.001397/0.3079, allocations: 1.144 MB / 466.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009874/0.3089, allocations: 468.8 kB / 466.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3089, allocations: 4.062 kB / 466.5 MB, free: 1.977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.3093, allocations: 238.5 kB / 466.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009558/0.3103, allocations: 190.7 kB / 466.9 MB, free: 1.551 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009627/0.3199, allocations: 6.532 MB / 473.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.3203, allocations: 361.3 kB / 473.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003751/0.3207, allocations: 94.16 kB / 473.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.3211, allocations: 319.3 kB / 474.2 MB, free: 9.805 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3211, allocations: 0 / 474.2 MB, free: 9.805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05546/0.3766, allocations: 17.77 MB / 492 MB, free: 8.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.18, allocations: 15.88 kB / 492 MB, free: 8.328 MB / 398.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.42306856799405]