Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.0008684/0.0008684, 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.0009427/0.0009427, 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.9157/0.9157, allocations: 173.3 MB / 200.4 MB, free: 9.426 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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.093e-05/2.274e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007202/0.007224, allocations: 7.129 MB / 325.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004289/0.01151, allocations: 2.466 MB / 328 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006912/0.01221, allocations: 27.88 kB / 328.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001248/0.01345, allocations: 0.5362 MB / 328.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009834/0.01444, allocations: 0.5117 MB / 329.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.01487, allocations: 259.6 kB / 329.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.01614, allocations: 1.529 MB / 330.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000486/0.01663, allocations: 371.2 kB / 331.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009915/0.01762, allocations: 0.8534 MB / 332.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005345/0.01816, allocations: 446.5 kB / 332.5 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.01829, allocations: 140 kB / 332.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.01853, allocations: 179.9 kB / 332.9 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.01866, allocations: 278.9 kB / 333.1 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004699/0.01913, allocations: 458.9 kB / 333.6 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001332/0.02046, allocations: 1.729 MB / 335.3 MB, free: 5.391 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.02047, allocations: 3.938 kB / 335.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.02047, allocations: 0 / 335.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.376e-05/0.0205, allocations: 4 kB / 335.3 MB, free: 5.383 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00182/0.02232, allocations: 1.391 MB / 336.7 MB, free: 3.957 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.02237, allocations: 8.922 kB / 336.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.02249, allocations: 152.4 kB / 336.9 MB, free: 3.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004869/0.02298, allocations: 200 kB / 337.1 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008973/0.02387, allocations: 0.6649 MB / 337.7 MB, free: 2.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.02392, allocations: 77.98 kB / 337.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/0.02401, allocations: 103.9 kB / 337.9 MB, free: 2.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.02511, allocations: 1.031 MB / 338.9 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/0.02513, allocations: 11.98 kB / 338.9 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.006e-05/0.02518, allocations: 39.94 kB / 339 MB, free: 1.598 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.0252, allocations: 24 kB / 339 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008368/0.02604, allocations: 0.6325 MB / 339.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.02947, allocations: 3.509 MB / 343.1 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000489/0.02996, allocations: 338.7 kB / 343.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.03034, allocations: 254 kB / 343.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.03037, allocations: 4.328 kB / 343.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.0304, allocations: 38.89 kB / 343.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.0304, allocations: 0 / 343.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.00253/0.03293, allocations: 1.263 MB / 345 MB, free: 11.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.03298, allocations: 85.11 kB / 345.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008152/0.03379, allocations: 0.8408 MB / 346 MB, free: 10.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.03382, allocations: 37.7 kB / 346 MB, free: 10.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.0341, allocations: 0.5657 MB / 346.6 MB, free: 9.703 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.292e-05/0.03419, allocations: 162.6 kB / 346.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.03433, allocations: 134.6 kB / 346.8 MB, free: 9.406 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.03443, allocations: 330 kB / 347.2 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.03468, allocations: 165.9 kB / 347.3 MB, free: 8.914 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/0.03508, allocations: 489.6 kB / 347.8 MB, free: 8.293 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007087/0.03579, allocations: 0.6624 MB / 348.5 MB, free: 7.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/0.0358, allocations: 4 kB / 348.5 MB, free: 7.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0009403/0.03674, allocations: 0.7708 MB / 349.2 MB, free: 6.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.03676, allocations: 14.66 kB / 349.3 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.03677, allocations: 8 kB / 349.3 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002074/0.03698, allocations: 90.05 kB / 349.4 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.03727, allocations: 151.7 kB / 349.5 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.03937, allocations: 2.916 MB / 352.4 MB, free: 3.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004094/0.03978, allocations: 31.95 kB / 352.5 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.03982, allocations: 36.08 kB / 352.5 MB, free: 3.238 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003439/0.04016, allocations: 261.7 kB / 352.7 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.427e-05/0.04024, allocations: 99.36 kB / 352.8 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006162/0.04086, allocations: 495.4 kB / 353.3 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.04086, allocations: 4 kB / 353.3 MB, free: 2.371 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.04087, allocations: 4 kB / 353.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.04087, allocations: 3.984 kB / 353.3 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.0423, allocations: 1.303 MB / 354.6 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.0423, allocations: 4 kB / 354.6 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.04248, allocations: 63.91 kB / 354.7 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001462/0.04262, allocations: 73.67 kB / 354.8 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.04264, allocations: 8 kB / 354.8 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.0442, allocations: 2.915 MB / 357.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.0442, allocations: 224 / 357.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.04527, allocations: 0.7711 MB / 358.5 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.04548, allocations: 119.4 kB / 358.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.04554, allocations: 12 kB / 358.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.04576, allocations: 35.91 kB / 358.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.04582, allocations: 35.88 kB / 358.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.04584, allocations: 16 kB / 358.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005318/0.04637, allocations: 0.5654 MB / 359.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.04637, allocations: 0 / 359.3 MB, free: 12.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006131/0.04699, allocations: 200 kB / 359.4 MB, free: 11.89 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (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.001105/0.04809, allocations: 1.354 MB / 360.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000805/0.0489, allocations: 0.6547 MB / 361.5 MB, free: 9.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.0489, allocations: 0 / 361.5 MB, free: 9.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003746/0.04927, allocations: 438.1 kB / 361.9 MB, free: 9.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006751/0.04995, allocations: 229.5 kB / 362.1 MB, free: 9.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008396/0.05834, allocations: 7.261 MB / 369.4 MB, free: 1.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.05869, allocations: 421.9 kB / 369.8 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003715/0.05907, allocations: 103.3 kB / 369.9 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.0594, allocations: 368.4 kB / 370.2 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.0594, allocations: 4 kB / 370.2 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04786/0.1073, allocations: 20.95 MB / 391.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/7.659, allocations: 2.922 kB / 391.2 MB, free: 11.86 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,dcse.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi [Calling sys.exit(0), Time elapsed: 9.866493471898139]