Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.001656/0.001656, allocations: 124 kB / 17.79 MB, free: 5.266 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.001779/0.001779, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.448/1.448, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 47.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.09802, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00878/0.1068, allocations: 7.174 MB / 425 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004208/0.111, allocations: 2.352 MB / 427.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006217/0.1116, allocations: 23.88 kB / 427.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.113, allocations: 0.5126 MB / 427.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009571/0.1139, allocations: 417 kB / 428.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.1143, allocations: 199.8 kB / 428.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001281/0.1156, allocations: 1.202 MB / 429.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005487/0.1161, allocations: 339.9 kB / 430 MB, free: 336 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006377/0.1168, allocations: 478.2 kB / 430.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000569/0.1173, allocations: 0.4939 MB / 430.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.1175, allocations: 112 kB / 431.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002864/0.1178, allocations: 156 kB / 431.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.1179, allocations: 227.2 kB / 431.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004724/0.1184, allocations: 0.5443 MB / 432 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001525/0.1199, allocations: 1.436 MB / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1199, allocations: 0 / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.12, allocations: 0 / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.12, allocations: 0 / 433.4 MB, free: 12.89 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00204/0.122, allocations: 1.277 MB / 434.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.122, allocations: 15.97 kB / 434.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.1222, allocations: 127.1 kB / 434.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004851/0.1227, allocations: 148.2 kB / 435 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.1237, allocations: 0.6538 MB / 435.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.1237, allocations: 62.38 kB / 435.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1239, allocations: 88.08 kB / 435.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.1252, allocations: 0.7793 MB / 436.5 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.1252, allocations: 3.938 kB / 436.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.1253, allocations: 35.94 kB / 436.6 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.1253, allocations: 20 kB / 436.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.1263, allocations: 0.5192 MB / 437.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004134/0.1304, allocations: 3.369 MB / 440.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005061/0.1309, allocations: 223.2 kB / 440.7 MB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002377/0.1312, allocations: 108.8 kB / 440.8 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.1312, allocations: 0 / 440.8 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.1312, allocations: 38.56 kB / 440.9 MB, free: 5.078 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.092e-06/0.1312, allocations: 0 / 440.9 MB, free: 5.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002072/0.1333, allocations: 1.057 MB / 441.9 MB, free: 3.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.1334, allocations: 85.34 kB / 442 MB, free: 3.844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009341/0.1343, allocations: 0.7349 MB / 442.7 MB, free: 3.102 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.1343, allocations: 25.7 kB / 442.8 MB, free: 3.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003857/0.1347, allocations: 0.5112 MB / 443.3 MB, free: 2.551 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.334e-05/0.1348, allocations: 107.1 kB / 443.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.135, allocations: 114.2 kB / 443.5 MB, free: 2.328 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.1351, allocations: 378.8 kB / 443.9 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.1354, allocations: 129.2 kB / 444 MB, free: 1.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000509/0.1359, allocations: 414.2 kB / 444.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007987/0.1367, allocations: 0.5753 MB / 445 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.1367, allocations: 8 kB / 445 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.179/0.3158, allocations: 0.6087 MB / 445.6 MB, free: 29.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.3158, allocations: 9.438 kB / 445.6 MB, free: 29.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/0.3158, allocations: 10.03 kB / 445.6 MB, free: 29.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.316, allocations: 36.94 kB / 445.6 MB, free: 29.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004421/0.3165, allocations: 142.1 kB / 445.8 MB, free: 29.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007082/0.3172, allocations: 1.389 MB / 447.2 MB, free: 28.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.3177, allocations: 30.97 kB / 447.2 MB, free: 28.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.3177, allocations: 29.31 kB / 447.2 MB, free: 28.01 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002697/0.318, allocations: 243.9 kB / 447.5 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.938e-05/0.3181, allocations: 79 kB / 447.5 MB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000568/0.3186, allocations: 316.6 kB / 447.8 MB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.3187, allocations: 4.688 kB / 447.8 MB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3187, allocations: 0.6875 kB / 447.8 MB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3187, allocations: 2.391 kB / 447.9 MB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.3199, allocations: 1.096 MB / 448.9 MB, free: 27.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3199, allocations: 1.344 kB / 448.9 MB, free: 27.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.3202, allocations: 59.66 kB / 449 MB, free: 27.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.861e-05/0.3203, allocations: 25.84 kB / 449 MB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3203, allocations: 14.25 kB / 449 MB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005737/0.3209, allocations: 1.367 MB / 450.4 MB, free: 26.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3209, allocations: 2.531 kB / 450.4 MB, free: 26.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.3216, allocations: 0.558 MB / 451 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.3217, allocations: 179.2 kB / 451.1 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.964e-05/0.3218, allocations: 11.47 kB / 451.2 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003023/0.3221, allocations: 20.72 kB / 451.2 MB, free: 25.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.3222, allocations: 30.61 kB / 451.2 MB, free: 25.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.3222, allocations: 13.12 kB / 451.2 MB, free: 25.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005282/0.3227, allocations: 0.499 MB / 451.7 MB, free: 25.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3227, allocations: 0 / 451.7 MB, free: 25.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005743/0.3233, allocations: 161 kB / 451.9 MB, free: 25.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0009613/0.3242, allocations: 1.123 MB / 453 MB, free: 24.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007769/0.325, allocations: 455.7 kB / 453.4 MB, free: 24.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.325, allocations: 0 / 453.4 MB, free: 24.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.3254, allocations: 244 kB / 453.7 MB, free: 24.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008821/0.3262, allocations: 189 kB / 453.9 MB, free: 24.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008568/0.3348, allocations: 6.262 MB / 460.1 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.3353, allocations: 0.9412 MB / 461.1 MB, free: 20.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003799/0.3357, allocations: 89.69 kB / 461.2 MB, free: 20.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.336, allocations: 304.2 kB / 461.5 MB, free: 20.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.402e-06/0.336, allocations: 0 / 461.5 MB, free: 20.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0643/0.4003, allocations: 15.56 MB / 477 MB, free: 15.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.36, allocations: 18.95 kB / 477 MB, free: 15.25 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.365735016297549]