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.001272/0.001272, allocations: 119 kB / 17.78 MB, free: 5.227 MB / 14.72 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.001307/0.001307, allocations: 197.2 kB / 20.73 MB, free: 2.285 MB / 14.72 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 1.386/1.386, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001483/0.001483, allocations: 51.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1077, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.00982/0.1175, allocations: 8.114 MB / 425.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004595/0.1221, allocations: 2.645 MB / 428.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007109/0.1228, allocations: 27.88 kB / 428.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.1242, allocations: 0.5715 MB / 429.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001082/0.1253, allocations: 0.4963 MB / 429.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.1258, allocations: 247.7 kB / 429.9 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.1273, allocations: 1.477 MB / 431.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006078/0.1279, allocations: 394.8 kB / 431.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006912/0.1286, allocations: 0.5798 MB / 432.3 MB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006547/0.1292, allocations: 0.595 MB / 432.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.1294, allocations: 140 kB / 433.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003033/0.1297, allocations: 180 kB / 433.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.1299, allocations: 282.9 kB / 433.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005901/0.1305, allocations: 0.6649 MB / 434.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.1323, allocations: 1.731 MB / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1323, allocations: 0 / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1323, allocations: 0 / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.1324, allocations: 0 / 435.9 MB, free: 10.41 MB / 366.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.002438/0.1348, allocations: 1.483 MB / 437.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1348, allocations: 12.03 kB / 437.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.135, allocations: 148.4 kB / 437.5 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006631/0.1357, allocations: 192 kB / 437.7 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.1369, allocations: 0.7539 MB / 438.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.1369, allocations: 73.94 kB / 438.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.1371, allocations: 96 kB / 438.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.1386, allocations: 0.9346 MB / 439.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.1387, allocations: 7.953 kB / 439.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.241e-05/0.1387, allocations: 40 kB / 439.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.1388, allocations: 24 kB / 439.7 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.14, allocations: 0.6363 MB / 440.3 MB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/0.1452, allocations: 3.893 MB / 444.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007059/0.1459, allocations: 420.5 kB / 444.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005858/0.1465, allocations: 257.9 kB / 444.9 MB, free: 1.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.1465, allocations: 8.328 kB / 444.9 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1466, allocations: 38.89 kB / 444.9 MB, free: 1.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.994e-06/0.1466, allocations: 0 / 444.9 MB, free: 1.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.1783/0.3249, allocations: 1.412 MB / 446.3 MB, free: 30.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3249, allocations: 84.67 kB / 446.4 MB, free: 29.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009555/0.3259, allocations: 0.8198 MB / 447.2 MB, free: 29.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.3259, allocations: 29.95 kB / 447.2 MB, free: 29.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.3262, allocations: 0.5688 MB / 447.8 MB, free: 29.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.184e-05/0.3262, allocations: 172.1 kB / 448 MB, free: 29.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.3264, allocations: 131.8 kB / 448.1 MB, free: 29.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.688e-05/0.3265, allocations: 334 kB / 448.4 MB, free: 29.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.3268, allocations: 164.5 kB / 448.6 MB, free: 29.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000382/0.3271, allocations: 465.8 kB / 449.1 MB, free: 28.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007017/0.3278, allocations: 0.6569 MB / 449.7 MB, free: 28.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3279, allocations: 7.25 kB / 449.7 MB, free: 28.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001137/0.329, allocations: 0.7734 MB / 450.5 MB, free: 28.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.329, allocations: 10.97 kB / 450.5 MB, free: 28.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.329, allocations: 9.938 kB / 450.5 MB, free: 28.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.3293, allocations: 81.45 kB / 450.6 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004392/0.3297, allocations: 150.8 kB / 450.7 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.3314, allocations: 3.155 MB / 453.9 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005353/0.332, allocations: 37.12 kB / 453.9 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.332, allocations: 30.88 kB / 454 MB, free: 25.44 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.0003376/0.3323, allocations: 259 kB / 454.2 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3324, allocations: 94.75 kB / 454.3 MB, free: 25.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008357/0.3333, allocations: 487.8 kB / 454.8 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3333, allocations: 2.688 kB / 454.8 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3333, allocations: 2.219 kB / 454.8 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3333, allocations: 2.438 kB / 454.8 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.3354, allocations: 1.453 MB / 456.2 MB, free: 24.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3354, allocations: 1.219 kB / 456.2 MB, free: 24.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002935/0.3357, allocations: 67.97 kB / 456.3 MB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/0.3359, allocations: 75.52 kB / 456.4 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.3359, allocations: 8.75 kB / 456.4 MB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.3376, allocations: 3.124 MB / 459.5 MB, free: 21.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3376, allocations: 9.25 kB / 459.5 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.3389, allocations: 0.7693 MB / 460.3 MB, free: 20.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.3391, allocations: 203.7 kB / 460.5 MB, free: 20.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.785e-05/0.3392, allocations: 9.047 kB / 460.5 MB, free: 20.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/0.3396, allocations: 31.75 kB / 460.5 MB, free: 20.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.549e-05/0.3397, allocations: 38.55 kB / 460.6 MB, free: 20.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.3397, allocations: 14.73 kB / 460.6 MB, free: 20.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007296/0.3404, allocations: 0.5623 MB / 461.1 MB, free: 20.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3404, allocations: 0 / 461.1 MB, free: 20.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008633/0.3413, allocations: 206.8 kB / 461.3 MB, free: 20.24 MB / 366.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.001422/0.3427, allocations: 1.339 MB / 462.7 MB, free: 19.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.3439, allocations: 0.6609 MB / 463.3 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3439, allocations: 1.406 kB / 463.3 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006035/0.3445, allocations: 431.6 kB / 463.8 MB, free: 18.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.3456, allocations: 236.9 kB / 464 MB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009659/0.3553, allocations: 7.308 MB / 471.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005749/0.3559, allocations: 1.006 MB / 472.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005062/0.3564, allocations: 108.8 kB / 472.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.3568, allocations: 374.6 kB / 472.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3568, allocations: 0 / 472.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05044/0.4072, allocations: 19.22 MB / 492 MB, free: 2.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.69, allocations: 19.45 kB / 492 MB, free: 2.293 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 14.642487772740424]