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.001275/0.001275, 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.001435/0.001435, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.43/1.43, 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.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.2358/0.2358, allocations: 46.96 MB / 360.9 MB, free: 4.031 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.001947/0.001947, allocations: 67.83 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3432, allocations: 66.03 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003392/0.3466, allocations: 1.858 MB / 0.5624 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.3477, allocations: 0.5386 MB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.3478, allocations: 4 kB / 0.5629 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.3479, allocations: 19.73 kB / 0.5629 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.811e-05/0.348, allocations: 39.64 kB / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.3482, allocations: 55.86 kB / 0.563 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.3485, allocations: 151.3 kB / 0.5632 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.3486, allocations: 51.64 kB / 0.5632 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.3488, allocations: 63.8 kB / 0.5633 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.3489, allocations: 63.7 kB / 0.5633 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.3489, allocations: 12 kB / 0.5634 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.529e-05/0.349, allocations: 16 kB / 0.5634 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.337e-05/0.349, allocations: 35.89 kB / 0.5634 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.967e-05/0.3491, allocations: 51.73 kB / 0.5635 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.3493, allocations: 155.4 kB / 0.5636 GB, free: 1.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3493, allocations: 0 / 0.5636 GB, free: 1.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3493, allocations: 0 / 0.5636 GB, free: 1.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.3494, allocations: 0 / 0.5636 GB, free: 1.117 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.000613/0.35, allocations: 369.6 kB / 0.564 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.35, allocations: 16.03 kB / 0.564 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.3501, allocations: 42.75 kB / 0.564 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.3502, allocations: 24.83 kB / 0.564 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.3505, allocations: 146.3 kB / 0.5642 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3505, allocations: 12.38 kB / 0.5642 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.3505, allocations: 20.33 kB / 0.5642 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.3508, allocations: 130 kB / 0.5643 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3508, allocations: 4 kB / 0.5643 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.3508, allocations: 4 kB / 0.5643 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3508, allocations: 8 kB / 0.5643 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.351, allocations: 79.94 kB / 0.5644 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007294/0.3517, allocations: 403.5 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.352, allocations: 118.4 kB / 0.5649 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.3521, allocations: 52.78 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3521, allocations: 0 / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.3521, allocations: 38.55 kB / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.052e-06/0.3521, allocations: 4 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.00142/0.3535, allocations: 0.6656 MB / 0.5657 GB, free: 14.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.3536, allocations: 51.41 kB / 0.5657 GB, free: 14.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.3537, allocations: 141.6 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.3538, allocations: 29.7 kB / 0.5659 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.083e-05/0.3538, allocations: 116.4 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.038e-05/0.3539, allocations: 75.36 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-05/0.354, allocations: 33.72 kB / 0.5661 GB, free: 14.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3541, allocations: 326.8 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-05/0.3542, allocations: 39.97 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.3544, allocations: 82.34 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.3546, allocations: 139.3 kB / 0.5667 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.3546, allocations: 4 kB / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003814/0.355, allocations: 206.3 kB / 0.5669 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.355, allocations: 11.94 kB / 0.5669 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.355, allocations: 0 / 0.5669 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/0.3552, allocations: 40.83 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.3553, allocations: 35.92 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/0.3569, allocations: 1.625 MB / 0.5685 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.383e-05/0.357, allocations: 8 kB / 0.5685 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.357, 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.0001428/0.3572, allocations: 137.8 kB / 0.5687 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.971e-05/0.3572, allocations: 11.91 kB / 0.5687 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.775e-05/0.3573, allocations: 21.12 kB / 0.5687 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.3573, allocations: 3.938 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3573, allocations: 4 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3573, allocations: 8 kB / 0.5687 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007847/0.3581, allocations: 0.5014 MB / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3581, allocations: 0 / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.3582, allocations: 31.98 kB / 0.5692 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001004/0.3583, allocations: 32.83 kB / 0.5693 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.3583, allocations: 4 kB / 0.5693 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.3596, allocations: 1.373 MB / 0.5706 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3596, allocations: 0 / 0.5706 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005064/0.3601, allocations: 346.7 kB / 0.5709 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.24e-05/0.3601, allocations: 19.88 kB / 0.571 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.3601, allocations: 4 kB / 0.571 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-05/0.3602, allocations: 4 kB / 0.571 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.582e-05/0.3602, allocations: 24.03 kB / 0.571 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.3602, allocations: 4 kB / 0.571 GB, free: 8.965 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.37e-05/0.3603, allocations: 111.8 kB / 0.5711 GB, free: 8.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3603, allocations: 3.938 kB / 0.5711 GB, free: 8.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.3607, allocations: 40 kB / 0.5711 GB, free: 8.812 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.0008521/0.3615, allocations: 0.8769 MB / 0.572 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000515/0.362, allocations: 262.9 kB / 0.5722 GB, free: 7.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.362, allocations: 0 / 0.5722 GB, free: 7.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.3623, allocations: 186.5 kB / 0.5724 GB, free: 7.441 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.3626, allocations: 22.66 kB / 0.5724 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.3653, allocations: 2.068 MB / 0.5745 GB, free: 5.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.3655, allocations: 111.7 kB / 0.5746 GB, free: 5.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.376e-05/0.3655, allocations: 9.438 kB / 0.5746 GB, free: 5.102 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.429e-05/0.3656, allocations: 43.42 kB / 0.5746 GB, free: 5.059 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3656, allocations: 0 / 0.5746 GB, free: 5.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03461/0.4002, allocations: 4.092 MB / 0.5786 GB, free: 1.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.63, allocations: 0 / 0.5786 GB, free: 1.121 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.563162232021568]