Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.0007099/0.0007099, 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.0008108/0.0008108, allocations: 174 kB / 23.95 MB, free: 0.6094 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.9321/0.9321, allocations: 177.1 MB / 204.3 MB, free: 5.73 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_Start,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.083e-06/2.083e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.133e-05/1.341e-05, allocations: 6.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.005801/0.005815, allocations: 7.165 MB / 331.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.009085, allocations: 2.497 MB / 334.2 MB, free: 6.211 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003834/0.009468, allocations: 27.88 kB / 334.3 MB, free: 6.184 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008368/0.0103, allocations: 0.5206 MB / 334.8 MB, free: 5.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005861/0.01089, allocations: 0.5077 MB / 335.3 MB, free: 5.148 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.01117, allocations: 263.6 kB / 335.6 MB, free: 4.891 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008999/0.01207, allocations: 1.536 MB / 337.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.01248, allocations: 375.8 kB / 337.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006859/0.01317, allocations: 0.8534 MB / 338.3 MB, free: 2.105 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003618/0.01353, allocations: 446.5 kB / 338.7 MB, free: 1.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.01364, allocations: 140 kB / 338.9 MB, free: 1.531 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.01383, allocations: 183.9 kB / 339.1 MB, free: 1.352 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.01396, allocations: 286.9 kB / 339.3 MB, free: 1.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002665/0.01422, allocations: 466.9 kB / 339.8 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001349/0.01557, allocations: 1.717 MB / 341.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.01558, allocations: 0 / 341.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01558, allocations: 4 kB / 341.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.01559, allocations: 3.938 kB / 341.5 MB, free: 14.88 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001363/0.01695, allocations: 1.391 MB / 342.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.01699, allocations: 8.031 kB / 342.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000118/0.01711, allocations: 152.4 kB / 343.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.01744, allocations: 196 kB / 343.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00076/0.0182, allocations: 0.6843 MB / 343.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.01824, allocations: 74 kB / 344 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.01832, allocations: 99.95 kB / 344.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009529/0.01928, allocations: 1.031 MB / 345.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.0193, allocations: 4 kB / 345.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.676e-05/0.01935, allocations: 40 kB / 345.2 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.01936, allocations: 24 kB / 345.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000735/0.02009, allocations: 0.6363 MB / 345.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003016/0.02311, allocations: 3.494 MB / 349.3 MB, free: 6.727 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004044/0.02351, allocations: 351.5 kB / 349.7 MB, free: 6.375 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.02384, allocations: 249.4 kB / 349.9 MB, free: 6.129 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.02386, allocations: 4.328 kB / 349.9 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.02388, allocations: 38.89 kB / 350 MB, free: 6.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=40): time 1.232e-06/0.02388, allocations: 0 / 350 MB, free: 6.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.0015/0.02538, allocations: 1.264 MB / 351.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.02542, allocations: 81.11 kB / 351.3 MB, free: 4.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006877/0.02611, allocations: 0.8485 MB / 352.2 MB, free: 3.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.02613, allocations: 33.7 kB / 352.2 MB, free: 3.781 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/0.02638, allocations: 0.5696 MB / 352.8 MB, free: 3.203 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.855e-05/0.02646, allocations: 166.6 kB / 352.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.02657, allocations: 130.6 kB / 353.1 MB, free: 2.906 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.007e-05/0.02665, allocations: 330 kB / 353.4 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.02686, allocations: 169.9 kB / 353.5 MB, free: 2.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.02717, allocations: 485.7 kB / 354 MB, free: 1.797 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000777/0.02795, allocations: 0.6544 MB / 354.7 MB, free: 1.008 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.02795, allocations: 8 kB / 354.7 MB, free: 1 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0007458/0.0287, allocations: 0.7749 MB / 355.5 MB, free: 220 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.02871, allocations: 8 kB / 355.5 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.02872, allocations: 8 kB / 355.5 MB, free: 204 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.02891, allocations: 81.62 kB / 355.6 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.02917, allocations: 160 kB / 355.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.03058, allocations: 2.912 MB / 358.6 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.03083, allocations: 39.94 kB / 358.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.03086, allocations: 36 kB / 358.7 MB, free: 12.74 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 (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.000215/0.03108, allocations: 253.5 kB / 358.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.236e-05/0.03115, allocations: 95.38 kB / 359 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005292/0.03168, allocations: 499.5 kB / 359.5 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.03168, allocations: 4 kB / 359.5 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.03168, allocations: 3.938 kB / 359.5 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.03169, allocations: 0 / 359.5 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001256/0.03294, allocations: 1.306 MB / 360.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.03294, allocations: 4 kB / 360.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.0331, allocations: 71.89 kB / 360.9 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.03321, allocations: 69.91 kB / 361 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.03323, allocations: 15.98 kB / 361 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00156/0.03479, allocations: 2.912 MB / 363.9 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.03479, allocations: 0 / 363.9 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007043/0.0355, allocations: 0.7594 MB / 364.7 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.03565, allocations: 127.4 kB / 364.8 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.829e-05/0.03571, allocations: 8 kB / 364.8 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.03591, allocations: 31.92 kB / 364.8 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.03597, allocations: 35.88 kB / 364.9 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.03598, allocations: 16 kB / 364.9 MB, free: 6.168 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004593/0.03644, allocations: 0.5654 MB / 365.4 MB, free: 5.609 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03644, allocations: 0 / 365.4 MB, free: 5.609 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004776/0.03692, allocations: 207.9 kB / 365.7 MB, free: 5.406 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.0009538/0.03787, allocations: 1.342 MB / 367 MB, free: 4.012 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006474/0.03852, allocations: 0.6592 MB / 367.7 MB, free: 3.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.03852, allocations: 4 kB / 367.7 MB, free: 3.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.03887, allocations: 429.7 kB / 368.1 MB, free: 2.879 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008583/0.03973, allocations: 232.6 kB / 368.3 MB, free: 2.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/0.04714, allocations: 7.266 MB / 375.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.04741, allocations: 414 kB / 376 MB, free: 10.51 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002615/0.04767, allocations: 107.2 kB / 376.1 MB, free: 10.4 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.04796, allocations: 380.3 kB / 376.5 MB, free: 10.03 MB / 346.7 MB Notification: Performance of SimCode: time 7.61e-07/0.04796, allocations: 0 / 376.5 MB, free: 10.03 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03805/0.08601, allocations: 20.97 MB / 397.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.684, allocations: 3.938 kB / 397.4 MB, free: 5.375 MB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.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.857154736295342]