Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.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.001847/0.001847, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002289/0.002289, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.2267/0.2267, allocations: 44.91 MB / 358.8 MB, free: 6.281 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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",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.002073/0.002073, allocations: 67.89 kB / 0.4931 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3384, allocations: 65.47 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003603/0.342, allocations: 2.44 MB / 0.5594 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.3436, allocations: 0.9796 MB / 0.5604 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.3438, allocations: 15.81 kB / 0.5604 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003459/0.3441, allocations: 123.2 kB / 0.5605 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.3443, allocations: 99.33 kB / 0.5606 GB, free: 4.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005929/0.3449, allocations: 291.6 kB / 0.5609 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007632/0.3457, allocations: 0.7211 MB / 0.5616 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3458, allocations: 51.06 kB / 0.5616 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.3462, allocations: 307 kB / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.3466, allocations: 342.8 kB / 0.5622 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.801e-05/0.3467, allocations: 64 kB / 0.5623 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.673e-05/0.3468, allocations: 60 kB / 0.5623 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.347, allocations: 195.4 kB / 0.5625 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.3472, allocations: 238.7 kB / 0.5628 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.3478, allocations: 0.5564 MB / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3478, allocations: 0 / 0.5633 GB, free: 1.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3478, allocations: 3.938 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.3478, allocations: 0 / 0.5633 GB, free: 1.297 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002474/0.3503, allocations: 0.8813 MB / 0.5642 GB, free: 396 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3503, allocations: 12.03 kB / 0.5642 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001338/0.3504, allocations: 86.72 kB / 0.5643 GB, free: 288 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.3506, allocations: 64.61 kB / 0.5643 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000642/0.3512, allocations: 317.2 kB / 0.5646 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007275/0.352, allocations: 0.6708 MB / 0.5653 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.3521, allocations: 44.38 kB / 0.5653 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/0.3542, allocations: 0.8046 MB / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.3543, allocations: 8 kB / 0.5661 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.3543, allocations: 16 kB / 0.5661 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3543, allocations: 8 kB / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003522/0.3578, allocations: 1.2 MB / 0.5673 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/0.3613, allocations: 2.003 MB / 0.5693 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003351/0.3646, allocations: 0.7738 MB / 0.57 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.3663, allocations: 449.9 kB / 0.5705 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.06e-05/0.3664, allocations: 12 kB / 0.5705 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.3664, allocations: 50.44 kB / 0.5705 GB, free: 9.559 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 1.994e-06/0.3664, allocations: 0 / 0.5705 GB, free: 9.559 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.1131/0.4795, allocations: 15.47 MB / 0.5856 GB, free: 9.992 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.4796, allocations: 97.98 kB / 0.5857 GB, free: 9.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005166/0.4801, allocations: 389.5 kB / 0.5861 GB, free: 9.488 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001833/0.4803, allocations: 49.7 kB / 0.5861 GB, free: 9.434 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.4805, allocations: 225.5 kB / 0.5864 GB, free: 9.207 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004494/0.4809, allocations: 408.5 kB / 0.5867 GB, free: 8.805 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005836/0.4815, allocations: 206.8 kB / 0.5869 GB, free: 8.594 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.4817, allocations: 370.7 kB / 0.5873 GB, free: 8.223 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/0.4855, allocations: 1.349 MB / 0.5886 GB, free: 6.875 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003986/0.4895, allocations: 1.486 MB / 0.5901 GB, free: 5.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007056/0.4966, allocations: 2.443 MB / 0.5924 GB, free: 2.855 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4966, allocations: 0 / 0.5924 GB, free: 2.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008184/0.5047, allocations: 2.831 MB / 0.5952 GB, free: 12 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.5048, allocations: 8 kB / 0.5952 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.5048, allocations: 4 kB / 0.5952 GB, free: 0 / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.198e-05/0.5048, allocations: 8.047 kB / 0.5952 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00295/0.5078, allocations: 403.6 kB / 0.5956 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.204e-05/0.5078, allocations: 15.92 kB / 0.5956 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.5099, allocations: 219.7 kB / 0.5958 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.51, allocations: 47.98 kB / 0.5959 GB, free: 15.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005208/0.5106, allocations: 231.6 kB / 0.5961 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.5108, allocations: 59.62 kB / 0.5962 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002868/0.5111, allocations: 108.7 kB / 0.5963 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.5111, allocations: 15.94 kB / 0.5963 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.5111, allocations: 3.938 kB / 0.5963 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.5111, allocations: 11.98 kB / 0.5963 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.5237, allocations: 5.197 MB / 0.6014 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.832e-05/0.5237, allocations: 36.08 kB / 0.6014 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.5253, allocations: 351.4 kB / 0.6017 GB, free: 8.984 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.818e-05/0.5253, allocations: 28 kB / 0.6018 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.764e-05/0.5254, allocations: 48 kB / 0.6018 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.334e-05/0.5255, allocations: 39.86 kB / 0.6019 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.69e-05/0.5255, allocations: 35.86 kB / 0.6019 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00751/0.533, allocations: 3.103 MB / 0.6049 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004645/0.5335, allocations: 159.5 kB / 0.6051 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.5336, allocations: 47.98 kB / 0.6051 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.5349, allocations: 191.8 kB / 0.6053 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004469/0.5354, allocations: 231.1 kB / 0.6055 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.427e-05/0.5355, allocations: 56 kB / 0.6056 GB, free: 4.758 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003321/0.5358, allocations: 263.1 kB / 0.6058 GB, free: 4.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5358, allocations: 0 / 0.6058 GB, free: 4.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001023/0.5368, allocations: 228 kB / 0.606 GB, free: 4.277 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007871/0.5447, allocations: 3.679 MB / 0.6096 GB, free: 300 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00638/0.5511, allocations: 2.155 MB / 0.6117 GB, free: 14.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.5511, allocations: 4 kB / 0.6117 GB, free: 14.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003345/0.5544, allocations: 1.051 MB / 0.6128 GB, free: 13.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.5557, allocations: 151.4 kB / 0.6129 GB, free: 12.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02789/0.5836, allocations: 12.39 MB / 0.625 GB, free: 15.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006402/0.5842, allocations: 0.9242 MB / 0.6259 GB, free: 14.87 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.5853, allocations: 218 kB / 0.6261 GB, free: 14.65 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007491/0.586, allocations: 219.4 kB / 0.6263 GB, free: 14.44 MB / 478.1 MB Notification: Performance of SimCode: time 1.443e-06/0.586, allocations: 4 kB / 0.6263 GB, free: 14.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05879/0.6448, allocations: 22.86 MB / 0.6487 GB, free: 7.719 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.36, allocations: 12.55 kB / 0.6487 GB, free: 7.715 MB / 494.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598444 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.453711551002925]