Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001463/0.001463, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00209/0.00209, allocations: 209.5 kB / 23.73 MB, free: 4.387 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.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2343/0.2343, allocations: 46.95 MB / 360.9 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 67.89 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.354, allocations: 66.04 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003333/0.3573, allocations: 1.861 MB / 0.5624 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009998/0.3583, allocations: 0.5309 MB / 0.5629 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.159e-05/0.3584, allocations: 7.938 kB / 0.5629 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3585, allocations: 15.8 kB / 0.5629 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.621e-05/0.3586, allocations: 43.64 kB / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.3589, allocations: 55.86 kB / 0.563 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.3591, allocations: 143.3 kB / 0.5632 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.3592, allocations: 47.64 kB / 0.5632 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.3594, allocations: 71.73 kB / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.3595, allocations: 59.69 kB / 0.5633 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.3595, allocations: 12 kB / 0.5634 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.756e-05/0.3596, allocations: 15.98 kB / 0.5634 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.048e-05/0.3596, allocations: 27.92 kB / 0.5634 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.914e-05/0.3597, allocations: 55.73 kB / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.3599, allocations: 159.3 kB / 0.5636 GB, free: 1.113 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.3599, allocations: 4 kB / 0.5636 GB, free: 1.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3599, allocations: 0 / 0.5636 GB, free: 1.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.3599, allocations: 0 / 0.5636 GB, free: 1.109 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005999/0.3605, allocations: 365.7 kB / 0.564 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3606, allocations: 8.031 kB / 0.564 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.958e-05/0.3606, allocations: 46.73 kB / 0.564 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3608, allocations: 24.84 kB / 0.564 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.361, allocations: 150.3 kB / 0.5642 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.3611, allocations: 8.375 kB / 0.5642 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.3611, allocations: 16.33 kB / 0.5642 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.3614, allocations: 134.1 kB / 0.5643 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3614, allocations: 4 kB / 0.5643 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.3614, allocations: 4 kB / 0.5643 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.3614, allocations: 7.938 kB / 0.5643 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.3616, allocations: 79.94 kB / 0.5644 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.3623, allocations: 415.5 kB / 0.5648 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.3626, allocations: 110.4 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.3627, allocations: 52.77 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.3627, allocations: 4 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.3627, allocations: 38.56 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.3627, allocations: 0 / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001483/0.3642, allocations: 0.6618 MB / 0.5657 GB, free: 14.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.3643, allocations: 55.41 kB / 0.5657 GB, free: 14.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.3644, allocations: 141.6 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.3644, allocations: 33.7 kB / 0.5659 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.231e-05/0.3645, allocations: 112.4 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.905e-05/0.3646, allocations: 75.31 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.006e-05/0.3646, allocations: 37.7 kB / 0.5661 GB, free: 14.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3648, allocations: 326.8 kB / 0.5664 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.86e-05/0.3649, allocations: 39.98 kB / 0.5664 GB, free: 13.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.365, allocations: 78.16 kB / 0.5665 GB, free: 13.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000234/0.3653, allocations: 135.3 kB / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.3653, allocations: 4 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000393/0.3656, allocations: 210.2 kB / 0.5668 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3657, allocations: 7.938 kB / 0.5669 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3657, allocations: 0 / 0.5669 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.3658, allocations: 40.83 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.366, allocations: 31.98 kB / 0.5669 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.3676, allocations: 1.629 MB / 0.5685 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.93e-05/0.3677, allocations: 12.02 kB / 0.5685 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.3677, allocations: 4 kB / 0.5685 GB, free: 11.68 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.3679, allocations: 129.8 kB / 0.5687 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.3679, allocations: 11.91 kB / 0.5687 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.908e-05/0.3679, allocations: 21.12 kB / 0.5687 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3679, allocations: 7.938 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.368, allocations: 4.062 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.368, allocations: 3.984 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007902/0.3687, allocations: 0.4974 MB / 0.5692 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3687, allocations: 4 kB / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.3689, allocations: 35.86 kB / 0.5692 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.965e-05/0.369, allocations: 32.83 kB / 0.5693 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.369, allocations: 8 kB / 0.5693 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.3703, allocations: 1.381 MB / 0.5706 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3703, allocations: 0 / 0.5706 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005685/0.3708, allocations: 351 kB / 0.5709 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.062e-05/0.3708, allocations: 11.94 kB / 0.571 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3709, allocations: 7.938 kB / 0.571 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.859e-05/0.371, allocations: 8.125 kB / 0.571 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.371, allocations: 19.91 kB / 0.571 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.371, allocations: 4 kB / 0.571 GB, free: 8.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.797e-05/0.3711, allocations: 111.9 kB / 0.5711 GB, free: 8.844 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3711, allocations: 0 / 0.5711 GB, free: 8.844 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.3714, allocations: 40 kB / 0.5711 GB, free: 8.805 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009433/0.3724, allocations: 0.8808 MB / 0.572 GB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005153/0.3729, allocations: 258.8 kB / 0.5722 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3729, allocations: 0 / 0.5722 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.3732, allocations: 190.5 kB / 0.5724 GB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.3735, allocations: 20.31 kB / 0.5724 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.3761, allocations: 2.058 MB / 0.5745 GB, free: 5.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.3762, allocations: 111.7 kB / 0.5746 GB, free: 5.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.384e-05/0.3763, allocations: 13.42 kB / 0.5746 GB, free: 5.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.726e-05/0.3764, allocations: 43.42 kB / 0.5746 GB, free: 5.055 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3764, allocations: 0 / 0.5746 GB, free: 5.055 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.4116, allocations: 4.015 MB / 0.5785 GB, free: 1.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.47, allocations: 4.062 kB / 0.5785 GB, free: 1.191 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.570937068201602]