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.001827/0.001827, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00205/0.00205, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.519/1.519, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.2207/0.2207, allocations: 44.93 MB / 359.6 MB, free: 6.059 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",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.002025/0.002025, allocations: 59.91 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3278, allocations: 65.48 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003745/0.3315, allocations: 2.248 MB / 0.5599 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.3333, allocations: 0.9369 MB / 0.5608 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.3335, allocations: 11.88 kB / 0.5608 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003693/0.3338, allocations: 115.2 kB / 0.561 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.3341, allocations: 103.3 kB / 0.5611 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007024/0.3348, allocations: 295.5 kB / 0.5613 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008402/0.3356, allocations: 0.7132 MB / 0.562 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.3358, allocations: 51.08 kB / 0.5621 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003471/0.3362, allocations: 295.1 kB / 0.5624 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004435/0.3366, allocations: 358.6 kB / 0.5627 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.3367, allocations: 64 kB / 0.5628 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.3368, allocations: 60 kB / 0.5628 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002335/0.337, allocations: 207.4 kB / 0.563 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.3373, allocations: 203 kB / 0.5632 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000654/0.3379, allocations: 0.5759 MB / 0.5638 GB, free: 1.316 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3379, allocations: 0 / 0.5638 GB, free: 1.316 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3379, allocations: 0 / 0.5638 GB, free: 1.316 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.338, allocations: 0 / 0.5638 GB, free: 1.316 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.002391/0.3403, allocations: 0.8831 MB / 0.5646 GB, free: 412 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3404, allocations: 8.031 kB / 0.5646 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.468e-05/0.3404, allocations: 8.844 kB / 0.5647 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.3405, allocations: 86.72 kB / 0.5647 GB, free: 300 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.3406, allocations: 68.61 kB / 0.5648 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.3413, allocations: 331.2 kB / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006675/0.342, allocations: 0.6708 MB / 0.5658 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.3421, allocations: 45.83 kB / 0.5658 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002253/0.3443, allocations: 0.8164 MB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.3444, allocations: 4 kB / 0.5666 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/0.3444, allocations: 19.94 kB / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.3444, allocations: 8 kB / 0.5666 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003689/0.3481, allocations: 1.22 MB / 0.5678 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00313/0.3513, allocations: 1.902 MB / 0.5697 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.354, allocations: 0.7547 MB / 0.5704 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.3555, allocations: 470.4 kB / 0.5709 GB, free: 9.695 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.904e-05/0.3556, allocations: 12.5 kB / 0.5709 GB, free: 9.684 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.3556, allocations: 43.69 kB / 0.5709 GB, free: 9.633 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.226e-06/0.3556, allocations: 0 / 0.5709 GB, free: 9.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09258/0.4482, allocations: 15.53 MB / 0.5861 GB, free: 9.996 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/0.4483, allocations: 94.05 kB / 0.5862 GB, free: 9.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005065/0.4488, allocations: 405.5 kB / 0.5866 GB, free: 9.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.449, allocations: 57.64 kB / 0.5866 GB, free: 9.418 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.4492, allocations: 221.5 kB / 0.5868 GB, free: 9.195 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004573/0.4496, allocations: 420.4 kB / 0.5872 GB, free: 8.781 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006308/0.4503, allocations: 198.9 kB / 0.5874 GB, free: 8.578 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.4505, allocations: 378.7 kB / 0.5878 GB, free: 8.199 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003796/0.4542, allocations: 1.357 MB / 0.5891 GB, free: 6.844 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003966/0.4582, allocations: 1.505 MB / 0.5906 GB, free: 5.289 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00696/0.4652, allocations: 2.455 MB / 0.593 GB, free: 2.793 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4652, allocations: 0 / 0.593 GB, free: 2.793 MB / 430.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008262/0.4734, allocations: 2.851 MB / 0.5958 GB, free: 15.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.4735, allocations: 8 kB / 0.5958 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.4735, allocations: 4 kB / 0.5958 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.4735, allocations: 8 kB / 0.5958 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002866/0.4764, allocations: 407.6 kB / 0.5962 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-05/0.4764, allocations: 15.98 kB / 0.5962 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002044/0.4784, allocations: 215.7 kB / 0.5964 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.4786, allocations: 39.98 kB / 0.5964 GB, free: 15.25 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: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,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 (150): * Single equations (assignments): 150 * 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.0005304/0.4791, allocations: 249.8 kB / 0.5967 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.4794, allocations: 63.58 kB / 0.5967 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002661/0.4796, allocations: 108.7 kB / 0.5968 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.4797, allocations: 12 kB / 0.5969 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4797, allocations: 0 / 0.5969 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4797, allocations: 15.89 kB / 0.5969 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.492, allocations: 4.865 MB / 0.6016 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.059e-05/0.492, allocations: 20 kB / 0.6016 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/0.4936, allocations: 355.8 kB / 0.602 GB, free: 9.234 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.857e-05/0.4936, allocations: 28 kB / 0.602 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4937, allocations: 48 kB / 0.602 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-05/0.4938, allocations: 47.78 kB / 0.6021 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.261e-05/0.4938, allocations: 27.88 kB / 0.6021 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007753/0.5015, allocations: 3.139 MB / 0.6052 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004662/0.502, allocations: 171.5 kB / 0.6053 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.5022, allocations: 47.98 kB / 0.6054 GB, free: 5.434 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.5036, allocations: 195.8 kB / 0.6056 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004877/0.5041, allocations: 227.2 kB / 0.6058 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.5042, allocations: 63.88 kB / 0.6059 GB, free: 4.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003559/0.5046, allocations: 283.1 kB / 0.6061 GB, free: 4.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5046, allocations: 0 / 0.6061 GB, free: 4.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001088/0.5056, allocations: 232 kB / 0.6063 GB, free: 4.453 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * 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.008062/0.5137, allocations: 3.719 MB / 0.61 GB, free: 440 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006682/0.5204, allocations: 2.187 MB / 0.6121 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.652e-05/0.5204, allocations: 4 kB / 0.6121 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003823/0.5242, allocations: 1.066 MB / 0.6132 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.5268, allocations: 145.7 kB / 0.6133 GB, free: 13.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04434/0.5712, allocations: 12.5 MB / 0.6255 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006005/0.5718, allocations: 329.6 kB / 0.6258 GB, free: 15.44 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001791/0.5736, allocations: 202.1 kB / 0.626 GB, free: 15.24 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/0.5748, allocations: 219.4 kB / 0.6262 GB, free: 15.03 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5748, allocations: 0 / 0.6262 GB, free: 15.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05749/0.6323, allocations: 23.88 MB / 0.6496 GB, free: 7.445 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.71, allocations: 14.8 kB / 0.6496 GB, free: 7.434 MB / 494.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 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.mat","/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.857701439992525]