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.001633/0.001633, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001751/0.001751, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.552/1.552, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.2518/0.2518, allocations: 44.92 MB / 358.8 MB, free: 6.352 MB / 286.1 MB " [Timeout remaining time 179] 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.002237/0.002237, allocations: 71.88 kB / 0.4931 GB, free: 10.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4327, allocations: 65.46 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00369/0.4364, allocations: 1.933 MB / 0.5589 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.4376, allocations: 0.5698 MB / 0.5595 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.4377, allocations: 0 / 0.5595 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.4379, allocations: 27.78 kB / 0.5595 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.438, allocations: 35.64 kB / 0.5595 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.4383, allocations: 51.89 kB / 0.5596 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.4385, allocations: 159.2 kB / 0.5597 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.4387, allocations: 43.67 kB / 0.5598 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.4389, allocations: 67.77 kB / 0.5598 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.4391, allocations: 63.7 kB / 0.5599 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.4391, allocations: 12 kB / 0.5599 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.487e-05/0.4392, allocations: 20 kB / 0.5599 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.034e-05/0.4392, allocations: 23.86 kB / 0.5599 GB, free: 4.758 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.608e-05/0.4393, allocations: 79.58 kB / 0.56 GB, free: 4.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.4396, allocations: 151.4 kB / 0.5602 GB, free: 4.531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4396, allocations: 8 kB / 0.5602 GB, free: 4.523 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4396, allocations: 0 / 0.5602 GB, free: 4.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.4396, allocations: 0 / 0.5602 GB, free: 4.523 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.0006905/0.4403, allocations: 357.7 kB / 0.5605 GB, free: 4.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.4404, allocations: 8.031 kB / 0.5605 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.003e-05/0.4404, allocations: 50.67 kB / 0.5606 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.4406, allocations: 24.83 kB / 0.5606 GB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.4409, allocations: 162.3 kB / 0.5607 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.4409, allocations: 12.36 kB / 0.5608 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.441, allocations: 16.33 kB / 0.5608 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.4413, allocations: 134.1 kB / 0.5609 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.4413, allocations: 0 / 0.5609 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.4413, allocations: 4 kB / 0.5609 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.4413, allocations: 4 kB / 0.5609 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.4415, allocations: 87.88 kB / 0.561 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007614/0.4423, allocations: 431.5 kB / 0.5614 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.4425, allocations: 114.4 kB / 0.5615 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.4426, allocations: 52.84 kB / 0.5616 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.4427, allocations: 3.984 kB / 0.5616 GB, free: 2.969 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.4427, allocations: 34.56 kB / 0.5616 GB, free: 2.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.4427, allocations: 0 / 0.5616 GB, free: 2.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00161/0.4443, allocations: 0.6635 MB / 0.5622 GB, free: 2.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.4444, allocations: 59.34 kB / 0.5623 GB, free: 2.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.4445, allocations: 139.7 kB / 0.5624 GB, free: 1.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.4445, allocations: 29.7 kB / 0.5625 GB, free: 1.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-05/0.4446, allocations: 112.4 kB / 0.5626 GB, free: 1.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.4447, allocations: 71.38 kB / 0.5626 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-05/0.4448, allocations: 37.66 kB / 0.5627 GB, free: 1.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.445, allocations: 326.8 kB / 0.563 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.4451, allocations: 47.98 kB / 0.563 GB, free: 1.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.4452, allocations: 81.03 kB / 0.5631 GB, free: 1.262 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.4454, allocations: 131.3 kB / 0.5632 GB, free: 1.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4454, allocations: 0 / 0.5632 GB, free: 1.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004225/0.4459, allocations: 210.2 kB / 0.5634 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.4459, allocations: 7.938 kB / 0.5634 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.4459, allocations: 3.938 kB / 0.5634 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.4461, allocations: 44.83 kB / 0.5635 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001807/0.4463, allocations: 35.91 kB / 0.5635 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.4481, allocations: 1.645 MB / 0.5651 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.405e-05/0.4482, allocations: 12.05 kB / 0.5651 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.4482, allocations: 8 kB / 0.5651 GB, free: 15.04 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.0001599/0.4483, allocations: 125.8 kB / 0.5653 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.4484, allocations: 11.95 kB / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.4484, allocations: 21.12 kB / 0.5653 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4484, allocations: 3.938 kB / 0.5653 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.4484, allocations: 3.984 kB / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.4484, allocations: 0 / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008605/0.4493, allocations: 0.5248 MB / 0.5658 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4493, allocations: 0 / 0.5658 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.4495, allocations: 39.91 kB / 0.5659 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001255/0.4496, allocations: 28.84 kB / 0.5659 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.4496, allocations: 8.031 kB / 0.5659 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.4509, allocations: 1.373 MB / 0.5672 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.4509, allocations: 0 / 0.5672 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005863/0.4515, allocations: 351.5 kB / 0.5676 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.922e-05/0.4516, allocations: 11.94 kB / 0.5676 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.4516, allocations: 4 kB / 0.5676 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.4517, allocations: 16.11 kB / 0.5676 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.4517, allocations: 19.92 kB / 0.5676 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.4517, allocations: 4 kB / 0.5676 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.169e-05/0.4518, allocations: 107.2 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4518, allocations: 0 / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.4522, allocations: 40 kB / 0.5678 GB, free: 12.16 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.0009101/0.4531, allocations: 0.8829 MB / 0.5686 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.4537, allocations: 254.9 kB / 0.5689 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4537, allocations: 0 / 0.5689 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.454, allocations: 186.5 kB / 0.569 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003729/0.4544, allocations: 23.92 kB / 0.5691 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.4572, allocations: 2.072 MB / 0.5711 GB, free: 8.582 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.4576, allocations: 0.7244 MB / 0.5718 GB, free: 7.828 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.593e-05/0.4577, allocations: 13.42 kB / 0.5718 GB, free: 7.812 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.894e-05/0.4578, allocations: 47.42 kB / 0.5719 GB, free: 7.766 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4578, allocations: 0 / 0.5719 GB, free: 7.766 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.4945, allocations: 3.596 MB / 0.5754 GB, free: 4.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.42, allocations: 3.516 kB / 0.5754 GB, free: 4.309 MB / 414.1 MB " [Timeout remaining time 647] (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.764938610998797]