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.001516/0.001516, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002412/0.002412, allocations: 204.3 kB / 20.74 MB, free: 2.316 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.546/1.546, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2188/0.2188, allocations: 44.9 MB / 355.1 MB, free: 12.32 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.00199/0.00199, allocations: 59.91 kB / 499.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1385, allocations: 65.43 MB / 0.5517 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003979/0.1425, allocations: 2.423 MB / 0.5541 GB, free: 7.703 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.1445, allocations: 0.9825 MB / 0.5551 GB, free: 6.715 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003034/0.1448, allocations: 19.81 kB / 0.5551 GB, free: 6.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004662/0.1453, allocations: 115.3 kB / 0.5552 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.1456, allocations: 99.33 kB / 0.5553 GB, free: 6.484 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008344/0.1464, allocations: 279.5 kB / 0.5556 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1474, allocations: 0.7171 MB / 0.5563 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.1476, allocations: 61.27 kB / 0.5563 GB, free: 5.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006027/0.1482, allocations: 303 kB / 0.5566 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006374/0.1489, allocations: 342.7 kB / 0.5569 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.1491, allocations: 60 kB / 0.557 GB, free: 4.738 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.1492, allocations: 60 kB / 0.557 GB, free: 4.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.1495, allocations: 191.4 kB / 0.5572 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002925/0.1498, allocations: 238.7 kB / 0.5575 GB, free: 4.258 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007191/0.1505, allocations: 0.5564 MB / 0.558 GB, free: 3.699 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1505, allocations: 4 kB / 0.558 GB, free: 3.695 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1505, allocations: 0 / 0.558 GB, free: 3.695 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1505, allocations: 3.984 kB / 0.558 GB, free: 3.691 MB / 414.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.002492/0.153, allocations: 0.9388 MB / 0.5589 GB, free: 2.703 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.153, allocations: 12.03 kB / 0.5589 GB, free: 2.691 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.1532, allocations: 94.64 kB / 0.559 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.1533, allocations: 68.61 kB / 0.5591 GB, free: 2.523 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006646/0.154, allocations: 383.3 kB / 0.5595 GB, free: 2.109 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004065/0.1544, allocations: 267.6 kB / 0.5597 GB, free: 1.812 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.67e-05/0.1545, allocations: 44.36 kB / 0.5598 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.1567, allocations: 0.8124 MB / 0.5605 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.1567, allocations: 7.938 kB / 0.5606 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.977e-05/0.1568, allocations: 16 kB / 0.5606 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.1568, allocations: 8 kB / 0.5606 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00387/0.1607, allocations: 1.204 MB / 0.5618 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.1639, allocations: 2.031 MB / 0.5637 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003294/0.1672, allocations: 0.7721 MB / 0.5645 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.1689, allocations: 458.4 kB / 0.5649 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.723e-05/0.1689, allocations: 7.984 kB / 0.5649 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.169, allocations: 42.5 kB / 0.565 GB, free: 12.26 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 2.785e-06/0.169, allocations: 4 kB / 0.565 GB, free: 12.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09312/0.2621, allocations: 15.77 MB / 0.5804 GB, free: 12.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.2622, allocations: 94.17 kB / 0.5805 GB, free: 12.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005384/0.2627, allocations: 389.5 kB / 0.5808 GB, free: 11.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001976/0.2629, allocations: 49.7 kB / 0.5809 GB, free: 11.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.2631, allocations: 221.5 kB / 0.5811 GB, free: 11.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004864/0.2636, allocations: 420.4 kB / 0.5815 GB, free: 11.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006027/0.2642, allocations: 210.8 kB / 0.5817 GB, free: 10.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.2644, allocations: 370.8 kB / 0.5821 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004118/0.2686, allocations: 1.342 MB / 0.5834 GB, free: 9.188 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004248/0.2728, allocations: 1.493 MB / 0.5848 GB, free: 7.648 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007477/0.2803, allocations: 2.449 MB / 0.5872 GB, free: 5.152 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.2803, allocations: 0 / 0.5872 GB, free: 5.152 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00918/0.2895, allocations: 2.83 MB / 0.59 GB, free: 2.316 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.54e-05/0.2895, allocations: 10.19 kB / 0.59 GB, free: 2.309 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.2895, allocations: 4 kB / 0.59 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.174e-05/0.2896, allocations: 8 kB / 0.59 GB, free: 2.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/0.2926, allocations: 407.6 kB / 0.5904 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.392e-05/0.2926, allocations: 15.88 kB / 0.5904 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.2949, allocations: 215.7 kB / 0.5906 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.2951, allocations: 43.98 kB / 0.5907 GB, free: 1.629 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.0005474/0.2956, allocations: 229.1 kB / 0.5909 GB, free: 1.398 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/0.2959, allocations: 59.62 kB / 0.5909 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.2962, allocations: 112.7 kB / 0.591 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.2962, allocations: 12 kB / 0.5911 GB, free: 1.219 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.2962, allocations: 7.922 kB / 0.5911 GB, free: 1.211 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.2962, allocations: 7.984 kB / 0.5911 GB, free: 1.203 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2825/0.5787, allocations: 5.229 MB / 0.5962 GB, free: 40.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.33e-05/0.5788, allocations: 20.69 kB / 0.5962 GB, free: 40.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/0.5805, allocations: 355.6 kB / 0.5965 GB, free: 40.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.763e-05/0.5805, allocations: 27.53 kB / 0.5966 GB, free: 40.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.5806, allocations: 47.89 kB / 0.5966 GB, free: 40.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.762e-05/0.5807, allocations: 46.97 kB / 0.5966 GB, free: 40.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.535e-05/0.5807, allocations: 36.34 kB / 0.5967 GB, free: 40.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007908/0.5886, allocations: 3.089 MB / 0.5997 GB, free: 38.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004758/0.5891, allocations: 240.1 kB / 0.5999 GB, free: 38.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.5893, allocations: 54.83 kB / 0.6 GB, free: 38.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/0.5907, allocations: 192.6 kB / 0.6002 GB, free: 38.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000459/0.5912, allocations: 213.3 kB / 0.6004 GB, free: 38.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.5913, allocations: 57.28 kB / 0.6004 GB, free: 38.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003765/0.5917, allocations: 262.8 kB / 0.6007 GB, free: 38.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5917, allocations: 4.656 kB / 0.6007 GB, free: 38.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001136/0.5928, allocations: 232.2 kB / 0.6009 GB, free: 38.04 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.007855/0.6006, allocations: 3.685 MB / 0.6045 GB, free: 35.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006903/0.6076, allocations: 2.164 MB / 0.6066 GB, free: 35.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.46e-05/0.6076, allocations: 7.219 kB / 0.6066 GB, free: 35.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003783/0.6114, allocations: 1.052 MB / 0.6076 GB, free: 34.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.6129, allocations: 146.6 kB / 0.6078 GB, free: 34.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/0.6404, allocations: 12.38 MB / 0.6199 GB, free: 27.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.6408, allocations: 0.9296 MB / 0.6208 GB, free: 26.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001072/0.6419, allocations: 203.6 kB / 0.621 GB, free: 26.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006957/0.6426, allocations: 217.7 kB / 0.6212 GB, free: 26.67 MB / 446.1 MB Notification: Performance of SimCode: time 1.323e-06/0.6426, allocations: 3.625 kB / 0.6212 GB, free: 26.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04685/0.6894, allocations: 21.7 MB / 0.6424 GB, free: 5.527 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.408/10.1, allocations: 1.875 kB / 0.6424 GB, free: 5.527 MB / 446.1 MB " [Timeout remaining time 650] (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: 13.312209560070187]