Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.0009841/0.0009841, 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.001727/0.001727, 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.9165/0.9165, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.845e-05/2.015e-05, allocations: 4.953 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.005959/0.005979, allocations: 7.294 MB / 331.9 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003734/0.009713, allocations: 2.568 MB / 334.4 MB, free: 6.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008155/0.01053, allocations: 31.81 kB / 334.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.01178, allocations: 0.5285 MB / 335 MB, free: 5.457 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009488/0.01273, allocations: 0.5272 MB / 335.5 MB, free: 4.926 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004696/0.0132, allocations: 279.5 kB / 335.8 MB, free: 4.652 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001436/0.01464, allocations: 1.579 MB / 337.4 MB, free: 3.066 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005144/0.01515, allocations: 367.9 kB / 337.7 MB, free: 2.688 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/0.01618, allocations: 0.8768 MB / 338.6 MB, free: 1.809 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005335/0.01672, allocations: 450.6 kB / 339 MB, free: 1.367 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.01686, allocations: 140 kB / 339.2 MB, free: 1.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.01713, allocations: 183.9 kB / 339.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.01727, allocations: 294.8 kB / 339.7 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003618/0.01763, allocations: 474.8 kB / 340.1 MB, free: 300 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.01893, allocations: 1.752 MB / 341.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.01894, allocations: 4 kB / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01894, allocations: 0 / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.01898, allocations: 0 / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001992/0.02097, allocations: 1.434 MB / 343.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.02101, allocations: 15.97 kB / 343.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.02113, allocations: 152.4 kB / 343.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004277/0.02156, allocations: 208 kB / 343.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.02274, allocations: 0.6929 MB / 344.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.02278, allocations: 74 kB / 344.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.927e-05/0.02288, allocations: 104 kB / 344.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.02398, allocations: 1.043 MB / 345.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.024, allocations: 4 kB / 345.6 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.02405, allocations: 40 kB / 345.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.02407, allocations: 24 kB / 345.7 MB, free: 10.63 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008242/0.02489, allocations: 0.6442 MB / 346.3 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003342/0.02824, allocations: 3.529 MB / 349.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.0287, allocations: 351.6 kB / 350.2 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003788/0.02908, allocations: 256.7 kB / 350.4 MB, free: 5.645 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.02911, allocations: 4 kB / 350.4 MB, free: 5.641 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.02913, allocations: 46.48 kB / 350.5 MB, free: 5.586 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.815e-06/0.02914, allocations: 0 / 350.5 MB, free: 5.586 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.001961/0.0311, allocations: 1.335 MB / 351.8 MB, free: 4.211 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.03114, allocations: 97.05 kB / 351.9 MB, free: 4.098 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008042/0.03195, allocations: 0.8566 MB / 352.8 MB, free: 3.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.03198, allocations: 33.7 kB / 352.8 MB, free: 3.191 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.03225, allocations: 0.5775 MB / 353.4 MB, free: 2.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.121e-05/0.03233, allocations: 162.6 kB / 353.5 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.03245, allocations: 134.6 kB / 353.7 MB, free: 2.309 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.867e-05/0.03254, allocations: 334 kB / 354 MB, free: 1.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.03278, allocations: 177.9 kB / 354.2 MB, free: 1.801 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.03313, allocations: 0.4895 MB / 354.6 MB, free: 1.172 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006028/0.03373, allocations: 0.6796 MB / 355.3 MB, free: 368 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.03374, allocations: 0 / 355.3 MB, free: 368 kB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008533/0.03459, allocations: 0.7875 MB / 356.1 MB, free: 15.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.03461, allocations: 8 kB / 356.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.03462, allocations: 12.03 kB / 356.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001935/0.03482, allocations: 81.67 kB / 356.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.0351, allocations: 155.7 kB / 356.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.0367, allocations: 2.927 MB / 359.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.03704, allocations: 36.17 kB / 359.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.03707, allocations: 40 kB / 359.4 MB, free: 12.07 MB / 330.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 (85): * Single equations (assignments): 83 * 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.0002811/0.03735, allocations: 261.5 kB / 359.6 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.03743, allocations: 99.33 kB / 359.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005945/0.03802, allocations: 0.5031 MB / 360.2 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.03803, allocations: 4 kB / 360.2 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.03803, allocations: 4 kB / 360.2 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.03804, allocations: 7.922 kB / 360.2 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.03943, allocations: 1.333 MB / 361.6 MB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.03944, allocations: 0 / 361.6 MB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.03961, allocations: 71.91 kB / 361.6 MB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.03974, allocations: 77.83 kB / 361.7 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.03976, allocations: 12 kB / 361.7 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001451/0.04122, allocations: 2.908 MB / 364.6 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.04122, allocations: 0 / 364.6 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000902/0.04212, allocations: 0.7987 MB / 365.4 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.0423, allocations: 127.3 kB / 365.6 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.982e-05/0.04235, allocations: 12 kB / 365.6 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.04256, allocations: 31.91 kB / 365.6 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.519e-05/0.04264, allocations: 35.94 kB / 365.6 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.04266, allocations: 16 kB / 365.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005013/0.04316, allocations: 0.5693 MB / 366.2 MB, free: 4.832 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04316, allocations: 7.938 kB / 366.2 MB, free: 4.824 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005851/0.04374, allocations: 215.9 kB / 366.4 MB, free: 4.613 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 (39): * Single equations (assignments): 37 * 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.001078/0.04482, allocations: 1.366 MB / 367.8 MB, free: 3.191 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.04586, allocations: 0.6782 MB / 368.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.04586, allocations: 4 kB / 368.5 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003688/0.04623, allocations: 449.8 kB / 368.9 MB, free: 2.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.04687, allocations: 223.3 kB / 369.1 MB, free: 1.809 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007841/0.05471, allocations: 7.438 MB / 376.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.05499, allocations: 434.7 kB / 377 MB, free: 9.469 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002762/0.05527, allocations: 103.3 kB / 377.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.05557, allocations: 388.4 kB / 377.5 MB, free: 8.984 MB / 346.7 MB Notification: Performance of SimCode: time 7.22e-07/0.05557, allocations: 3.938 kB / 377.5 MB, free: 8.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04013/0.0957, allocations: 21.37 MB / 398.9 MB, free: 3.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/7.742, allocations: 0 / 398.9 MB, free: 3.93 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.902731062844396]