Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001799/0.001799, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002241/0.002241, allocations: 213.5 kB / 23.73 MB, free: 4.16 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.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2501/0.2501, allocations: 44.93 MB / 358.8 MB, free: 6.02 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002388, allocations: 66.09 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3367, allocations: 65.47 MB / 0.557 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003356/0.3401, allocations: 1.864 MB / 0.5588 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.3412, allocations: 0.5309 MB / 0.5593 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.787e-05/0.3413, allocations: 4 kB / 0.5593 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.3414, allocations: 23.73 kB / 0.5593 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.852e-05/0.3415, allocations: 39.62 kB / 0.5594 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.3418, allocations: 47.89 kB / 0.5594 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.342, allocations: 155.2 kB / 0.5595 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.3421, allocations: 47.66 kB / 0.5596 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.3423, allocations: 71.7 kB / 0.5597 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.3425, allocations: 51.77 kB / 0.5597 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.3425, allocations: 12 kB / 0.5597 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.001e-05/0.3425, allocations: 20 kB / 0.5597 GB, free: 4.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.28e-05/0.3426, allocations: 27.86 kB / 0.5598 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.88e-05/0.3426, allocations: 55.73 kB / 0.5598 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00026/0.3429, allocations: 155.3 kB / 0.56 GB, free: 4.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.3429, allocations: 3.984 kB / 0.56 GB, free: 4.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3429, allocations: 0 / 0.56 GB, free: 4.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3429, allocations: 0 / 0.56 GB, free: 4.402 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.0005916/0.3435, allocations: 361.7 kB / 0.5603 GB, free: 4.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3436, allocations: 12.03 kB / 0.5603 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.121e-05/0.3436, allocations: 54.67 kB / 0.5604 GB, free: 3.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.3438, allocations: 20.84 kB / 0.5604 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.344, allocations: 146.3 kB / 0.5605 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.344, allocations: 16.36 kB / 0.5606 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.3441, allocations: 24.2 kB / 0.5606 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.3443, allocations: 122.1 kB / 0.5607 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3444, allocations: 4 kB / 0.5607 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.3444, allocations: 4 kB / 0.5607 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.3444, allocations: 4 kB / 0.5607 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3446, allocations: 87.94 kB / 0.5608 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007109/0.3453, allocations: 403.5 kB / 0.5612 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.3455, allocations: 110.4 kB / 0.5613 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.3456, allocations: 56.83 kB / 0.5613 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.3457, allocations: 0 / 0.5613 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.3457, allocations: 38.56 kB / 0.5614 GB, free: 2.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.072e-06/0.3457, allocations: 0 / 0.5614 GB, free: 2.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001518/0.3472, allocations: 0.6732 MB / 0.562 GB, free: 2.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.3473, allocations: 51.41 kB / 0.5621 GB, free: 2.047 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.3474, allocations: 145.6 kB / 0.5622 GB, free: 1.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.3474, allocations: 25.7 kB / 0.5622 GB, free: 1.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.294e-05/0.3475, allocations: 116.4 kB / 0.5624 GB, free: 1.742 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.518e-05/0.3476, allocations: 71.38 kB / 0.5624 GB, free: 1.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.037e-05/0.3476, allocations: 41.7 kB / 0.5625 GB, free: 1.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3478, allocations: 322.8 kB / 0.5628 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.504e-05/0.3479, allocations: 43.98 kB / 0.5628 GB, free: 1.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.348, allocations: 82.16 kB / 0.5629 GB, free: 1.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.3483, allocations: 131.3 kB / 0.563 GB, free: 1.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3483, allocations: 4 kB / 0.563 GB, free: 1.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000391/0.3486, allocations: 202.2 kB / 0.5632 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3487, allocations: 11.94 kB / 0.5632 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3487, allocations: 0 / 0.5632 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001796/0.3489, allocations: 44.77 kB / 0.5633 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.349, allocations: 43.91 kB / 0.5633 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.3507, allocations: 1.625 MB / 0.5649 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.603e-05/0.3508, allocations: 12.05 kB / 0.5649 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.3508, allocations: 8 kB / 0.5649 GB, free: 14.96 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.3509, allocations: 137.7 kB / 0.565 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.351, allocations: 11.91 kB / 0.5651 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.351, allocations: 17.12 kB / 0.5651 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.351, allocations: 3.938 kB / 0.5651 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.351, allocations: 4 kB / 0.5651 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.351, allocations: 3.984 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008137/0.3518, allocations: 0.501 MB / 0.5656 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3518, allocations: 0 / 0.5656 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.352, allocations: 36.02 kB / 0.5656 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.3521, allocations: 36.83 kB / 0.5656 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.3521, allocations: 0 / 0.5656 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.3534, allocations: 1.37 MB / 0.567 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3534, allocations: 0 / 0.567 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005209/0.3539, allocations: 352.2 kB / 0.5673 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.302e-05/0.354, allocations: 11.94 kB / 0.5673 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.354, allocations: 8 kB / 0.5673 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.526e-05/0.3541, allocations: 11.98 kB / 0.5673 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.3541, allocations: 11.92 kB / 0.5674 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.3541, allocations: 11.94 kB / 0.5674 GB, free: 12.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.372e-05/0.3542, allocations: 111.4 kB / 0.5675 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3542, allocations: 0 / 0.5675 GB, free: 12.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003268/0.3546, allocations: 44 kB / 0.5675 GB, free: 12.09 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.0008578/0.3554, allocations: 0.8764 MB / 0.5684 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005058/0.3559, allocations: 254.9 kB / 0.5686 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3559, allocations: 0 / 0.5686 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.3562, allocations: 188.7 kB / 0.5688 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.3565, allocations: 19.98 kB / 0.5688 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3593, allocations: 2.075 MB / 0.5708 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.3594, allocations: 107.7 kB / 0.5709 GB, free: 8.391 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.675e-05/0.3594, allocations: 17.42 kB / 0.571 GB, free: 8.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.378e-05/0.3595, allocations: 39.42 kB / 0.571 GB, free: 8.332 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3595, allocations: 4 kB / 0.571 GB, free: 8.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03373/0.3933, allocations: 3.998 MB / 0.5749 GB, free: 4.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.3, allocations: 4.062 kB / 0.5749 GB, free: 4.477 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.508468348998576]