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.0008844/0.0008844, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008855/0.0008855, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8712/0.8712, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2322/0.2322, allocations: 32.79 MB / 293.5 MB, free: 1.219 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.165e-05/1.296e-05, allocations: 8.25 kB / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002288/0.002301, allocations: 2.255 MB / 441.8 MB, free: 1.98 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.003452, allocations: 0.9473 MB / 442.8 MB, free: 1.027 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.00359, allocations: 7.938 kB / 442.8 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.003878, allocations: 123.2 kB / 442.9 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.00404, allocations: 107.2 kB / 443 MB, free: 0.793 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004283/0.004469, allocations: 288.4 kB / 443.3 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1646/0.1691, allocations: 0.7195 MB / 444 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.1693, allocations: 41.25 kB / 444 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004222/0.1697, allocations: 398.2 kB / 444.4 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.17, allocations: 290.6 kB / 444.7 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.951e-05/0.17, allocations: 63.75 kB / 444.8 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.919e-05/0.1701, allocations: 61.47 kB / 444.8 MB, free: 43.42 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.1702, allocations: 204.2 kB / 445 MB, free: 43.4 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.114e-05/0.1703, allocations: 180.9 kB / 445.2 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.1706, allocations: 0.6126 MB / 445.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1706, allocations: 0.5312 kB / 445.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1706, allocations: 0.5625 kB / 445.8 MB, free: 43.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1706, allocations: 0 / 445.8 MB, free: 43.35 MB / 410.7 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.001198/0.1718, allocations: 0.8795 MB / 446.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.1719, allocations: 8.156 kB / 446.7 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.941e-05/0.1719, allocations: 93.16 kB / 446.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.704e-05/0.172, allocations: 66.36 kB / 446.9 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.1724, allocations: 325.1 kB / 447.2 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/0.1726, allocations: 0.6666 MB / 447.9 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.587e-05/0.1727, allocations: 46.47 kB / 447.9 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.1737, allocations: 0.8091 MB / 448.7 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1737, allocations: 9.531 kB / 448.7 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.1738, allocations: 26.97 kB / 448.7 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.1738, allocations: 11.47 kB / 448.8 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.1755, allocations: 1.207 MB / 450 MB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.177, allocations: 1.886 MB / 451.9 MB, free: 40.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.1784, allocations: 0.7577 MB / 452.6 MB, free: 40.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007394/0.1792, allocations: 462.9 kB / 453.1 MB, free: 39.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.762e-05/0.1792, allocations: 10.25 kB / 453.1 MB, free: 39.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.647e-05/0.1792, allocations: 43.84 kB / 453.1 MB, free: 39.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.703e-06/0.1792, allocations: 0 / 453.1 MB, free: 39.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04156/0.2208, allocations: 15.55 MB / 468.7 MB, free: 36.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.2208, allocations: 90.67 kB / 468.8 MB, free: 36.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.2211, allocations: 421.8 kB / 469.2 MB, free: 36.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.2212, allocations: 44.67 kB / 469.2 MB, free: 36.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.336e-05/0.2213, allocations: 222.8 kB / 469.4 MB, free: 35.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000191/0.2215, allocations: 411.9 kB / 469.8 MB, free: 35.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003327/0.2219, allocations: 201.9 kB / 470 MB, free: 35.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.706e-05/0.2219, allocations: 378.4 kB / 470.4 MB, free: 35.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/0.2238, allocations: 1.352 MB / 471.7 MB, free: 34.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/0.2257, allocations: 1.506 MB / 473.3 MB, free: 33.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003674/0.2293, allocations: 2.456 MB / 475.7 MB, free: 32.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.2293, allocations: 3.938 kB / 475.7 MB, free: 32.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004453/0.2338, allocations: 2.856 MB / 478.6 MB, free: 31.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.2338, allocations: 5.844 kB / 478.6 MB, free: 31.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.2338, allocations: 6.359 kB / 478.6 MB, free: 31.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.2339, allocations: 8.406 kB / 478.6 MB, free: 31.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.2352, allocations: 410.7 kB / 479 MB, free: 31.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.018e-05/0.2352, allocations: 10.19 kB / 479 MB, free: 31.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009507/0.2362, allocations: 227.9 kB / 479.2 MB, free: 31.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.2363, allocations: 39.66 kB / 479.3 MB, free: 31.74 MB / 410.7 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.0003378/0.2366, allocations: 245.3 kB / 479.5 MB, free: 31.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.2367, allocations: 65.45 kB / 479.6 MB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.2368, allocations: 109.5 kB / 479.7 MB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.2369, allocations: 11.12 kB / 479.7 MB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/0.2369, allocations: 1.766 kB / 479.7 MB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2369, allocations: 7.266 kB / 479.7 MB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00695/0.2438, allocations: 4.864 MB / 484.6 MB, free: 29.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/0.2438, allocations: 20.72 kB / 484.6 MB, free: 29.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007606/0.2446, allocations: 358.4 kB / 484.9 MB, free: 29.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.98e-05/0.2446, allocations: 28.88 kB / 485 MB, free: 29.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/0.2447, allocations: 43 kB / 485 MB, free: 29.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-05/0.2447, allocations: 40.25 kB / 485 MB, free: 29.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/0.2447, allocations: 35.19 kB / 485.1 MB, free: 29.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/0.249, allocations: 3.091 MB / 488.2 MB, free: 27.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.2493, allocations: 169.8 kB / 488.3 MB, free: 27.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.2494, allocations: 51.95 kB / 488.4 MB, free: 27.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007432/0.2502, allocations: 191.8 kB / 488.6 MB, free: 27.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/0.2506, allocations: 222.6 kB / 488.8 MB, free: 27.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-05/0.2506, allocations: 62.45 kB / 488.8 MB, free: 27.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002833/0.2509, allocations: 284 kB / 489.1 MB, free: 27.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2509, allocations: 0 / 489.1 MB, free: 27.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008699/0.2518, allocations: 230.4 kB / 489.3 MB, free: 27 MB / 410.7 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.004518/0.2563, allocations: 3.685 MB / 493 MB, free: 24.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004054/0.2604, allocations: 2.192 MB / 495.2 MB, free: 24.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.199e-05/0.2604, allocations: 2.75 kB / 495.2 MB, free: 24.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002231/0.2626, allocations: 1.06 MB / 496.3 MB, free: 23.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009505/0.2636, allocations: 160.7 kB / 496.4 MB, free: 23.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.2783, allocations: 12.44 MB / 0.497 GB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.2785, allocations: 329.8 kB / 0.4973 GB, free: 13.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006359/0.2791, allocations: 210 kB / 0.4975 GB, free: 12.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004539/0.2796, allocations: 220.4 kB / 0.4977 GB, free: 12.6 MB / 410.7 MB Notification: Performance of SimCode: time 9.91e-07/0.2796, allocations: 0 / 0.4977 GB, free: 12.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.3092, allocations: 23.94 MB / 0.5211 GB, free: 4.926 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.24/7.549, allocations: 14.39 kB / 0.5211 GB, free: 4.922 MB / 426.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/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: 9.473511090502143]