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.00176/0.00176, 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.002141/0.002141, allocations: 216.1 kB / 23.73 MB, free: 4.531 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.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.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 0.001448/0.001448, allocations: 43.92 kB / 377.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2313, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01011/0.2415, allocations: 7.162 MB / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005986/0.2474, allocations: 2.49 MB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001385/0.2488, allocations: 31.88 kB / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.2507, allocations: 0.5131 MB / 441.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001692/0.2524, allocations: 0.4964 MB / 441.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.253, allocations: 243.7 kB / 442 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.2548, allocations: 1.486 MB / 443.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000667/0.2555, allocations: 403.2 kB / 443.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008803/0.2564, allocations: 0.5759 MB / 444.5 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008527/0.2572, allocations: 0.595 MB / 445.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.2574, allocations: 136 kB / 445.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003794/0.2578, allocations: 180 kB / 445.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.258, allocations: 279 kB / 445.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005273/0.2585, allocations: 0.5444 MB / 446.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.2604, allocations: 1.744 MB / 447.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2604, allocations: 0 / 447.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2604, allocations: 0 / 447.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.2604, allocations: 0 / 447.9 MB, free: 5.727 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002369/0.2628, allocations: 1.4 MB / 449.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2628, allocations: 8.031 kB / 449.3 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/0.263, allocations: 156.3 kB / 449.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006475/0.2637, allocations: 196 kB / 449.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.2649, allocations: 0.6726 MB / 450.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.473e-05/0.265, allocations: 78 kB / 450.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.2651, allocations: 99.95 kB / 450.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.2667, allocations: 1.039 MB / 451.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.2668, allocations: 8 kB / 451.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-05/0.2669, allocations: 36 kB / 451.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-05/0.2669, allocations: 24 kB / 451.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.2681, allocations: 0.6325 MB / 452.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005017/0.2732, allocations: 3.498 MB / 455.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006449/0.2738, allocations: 335.5 kB / 456.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005651/0.2744, allocations: 253.3 kB / 456.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.2744, allocations: 8.328 kB / 456.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.2744, allocations: 38.89 kB / 456.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.813e-06/0.2744, allocations: 0 / 456.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002549/0.277, allocations: 1.272 MB / 457.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.277, allocations: 81.11 kB / 457.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.2782, allocations: 0.8408 MB / 458.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.2782, allocations: 33.7 kB / 458.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004574/0.2786, allocations: 0.5658 MB / 459.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.2788, allocations: 166.6 kB / 459.3 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.279, allocations: 138.6 kB / 459.5 MB, free: 9.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2791, allocations: 333.9 kB / 459.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.2795, allocations: 169.9 kB / 460 MB, free: 9.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005862/0.2801, allocations: 485.7 kB / 460.4 MB, free: 8.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.281, allocations: 0.6661 MB / 461.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.281, allocations: 0 / 461.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001367/0.2824, allocations: 0.7712 MB / 461.9 MB, free: 7.043 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.2824, allocations: 11.94 kB / 461.9 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.2824, allocations: 8 kB / 461.9 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002636/0.2827, allocations: 89.61 kB / 462 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004899/0.2832, allocations: 151.7 kB / 462.1 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/0.2858, allocations: 2.912 MB / 465.1 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000545/0.2864, allocations: 44.16 kB / 465.1 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.2864, allocations: 36 kB / 465.1 MB, free: 3.562 MB / 366.1 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.0003939/0.2868, allocations: 257.5 kB / 465.4 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.2869, allocations: 91.44 kB / 465.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000956/0.2879, allocations: 499.4 kB / 466 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2879, allocations: 4 kB / 466 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.2879, allocations: 0 / 466 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.2879, allocations: 3.984 kB / 466 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.29, allocations: 1.306 MB / 467.3 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.29, allocations: 4 kB / 467.3 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.2903, allocations: 71.84 kB / 467.3 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001984/0.2905, allocations: 73.89 kB / 467.4 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.2905, allocations: 12 kB / 467.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.293, allocations: 2.908 MB / 470.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.293, allocations: 0 / 470.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.2943, allocations: 0.7745 MB / 471.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.2945, allocations: 123.4 kB / 471.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.459e-05/0.2946, allocations: 12 kB / 471.2 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.295, allocations: 27.97 kB / 471.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.2951, allocations: 35.94 kB / 471.3 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.2952, allocations: 12 kB / 471.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007839/0.2959, allocations: 0.5654 MB / 471.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2959, allocations: 3.938 kB / 471.9 MB, free: 12.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008053/0.2967, allocations: 211.9 kB / 472.1 MB, free: 12.21 MB / 382.1 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.001643/0.2984, allocations: 1.327 MB / 473.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.2996, allocations: 0.6689 MB / 474.1 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.2996, allocations: 5.938 kB / 474.1 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006454/0.3003, allocations: 437.4 kB / 474.5 MB, free: 9.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.3013, allocations: 225.5 kB / 474.7 MB, free: 9.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.3128, allocations: 7.321 MB / 482.1 MB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.3132, allocations: 417.9 kB / 482.5 MB, free: 1.281 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004233/0.3137, allocations: 107.2 kB / 482.6 MB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/0.3142, allocations: 375.3 kB / 482.9 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3142, allocations: 0 / 482.9 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06106/0.3752, allocations: 21.13 MB / 0.4923 GB, free: 12.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.28, allocations: 3.984 kB / 0.4923 GB, free: 12.03 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.244015819014749]