Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008173/0.0008173, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008533/0.0008533, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.8926/0.8926, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2263/0.2263, allocations: 34.24 MB / 294.9 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.282e-05/1.41e-05, allocations: 4.25 kB / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.1695/0.1695, allocations: 2.251 MB / 444.4 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.1708, allocations: 0.9397 MB / 445.3 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.171, allocations: 16.86 kB / 445.4 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003476/0.1713, allocations: 116.8 kB / 445.5 MB, free: 42.92 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.1715, allocations: 117.2 kB / 445.6 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.172, allocations: 284.6 kB / 445.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.1724, allocations: 0.7254 MB / 446.6 MB, free: 42.54 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1726, allocations: 46.72 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003087/0.1729, allocations: 400.5 kB / 447 MB, free: 42.34 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.1732, allocations: 292.1 kB / 447.3 MB, free: 42.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.98e-05/0.1732, allocations: 61.91 kB / 447.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.608e-05/0.1733, allocations: 66.88 kB / 447.4 MB, free: 42.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.1734, allocations: 197.2 kB / 447.6 MB, free: 42.14 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.1735, allocations: 175.7 kB / 447.8 MB, free: 42.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.1739, allocations: 0.6113 MB / 448.4 MB, free: 41.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1739, allocations: 2.906 kB / 448.4 MB, free: 41.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1739, allocations: 0 / 448.4 MB, free: 41.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1739, allocations: 0 / 448.4 MB, free: 41.8 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.001353/0.1752, allocations: 0.8853 MB / 449.3 MB, free: 41.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1753, allocations: 8.75 kB / 449.3 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.257e-05/0.1754, allocations: 89.53 kB / 449.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.521e-05/0.1754, allocations: 68.95 kB / 449.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/0.1758, allocations: 316.1 kB / 449.8 MB, free: 40.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002527/0.1761, allocations: 0.6671 MB / 450.4 MB, free: 40.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.159e-05/0.1761, allocations: 45.64 kB / 450.5 MB, free: 40.24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.1773, allocations: 0.8144 MB / 451.3 MB, free: 39.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.1773, allocations: 10.05 kB / 451.3 MB, free: 39.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.1773, allocations: 21.75 kB / 451.3 MB, free: 39.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1774, allocations: 9.094 kB / 451.3 MB, free: 39.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.1792, allocations: 1.208 MB / 452.6 MB, free: 39.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.1808, allocations: 1.9 MB / 454.5 MB, free: 38.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/0.1823, allocations: 0.7363 MB / 455.2 MB, free: 38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007875/0.1831, allocations: 467.9 kB / 455.6 MB, free: 37.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.316e-05/0.1832, allocations: 17 kB / 455.7 MB, free: 37.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.1832, allocations: 42.09 kB / 455.7 MB, free: 37.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.905e-06/0.1832, allocations: 2.672 kB / 455.7 MB, free: 37.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04097/0.2241, allocations: 15.55 MB / 471.3 MB, free: 34.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.2242, allocations: 89.98 kB / 471.3 MB, free: 34.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.2245, allocations: 415.1 kB / 471.8 MB, free: 34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.814e-05/0.2246, allocations: 44.89 kB / 471.8 MB, free: 33.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.2247, allocations: 232.2 kB / 472 MB, free: 33.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.2249, allocations: 412.3 kB / 472.4 MB, free: 33.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003278/0.2252, allocations: 203 kB / 472.6 MB, free: 33.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.952e-05/0.2252, allocations: 371.3 kB / 473 MB, free: 32.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/0.2272, allocations: 1.355 MB / 474.3 MB, free: 32.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.2296, allocations: 1.506 MB / 475.8 MB, free: 31.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/0.2336, allocations: 2.453 MB / 478.3 MB, free: 30.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.2336, allocations: 5.031 kB / 478.3 MB, free: 30.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004748/0.2384, allocations: 2.861 MB / 481.2 MB, free: 29.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.2384, allocations: 6.562 kB / 481.2 MB, free: 29.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.2384, allocations: 8.469 kB / 481.2 MB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/0.2384, allocations: 7.125 kB / 481.2 MB, free: 29.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.2398, allocations: 411.3 kB / 481.6 MB, free: 29.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.2398, allocations: 8.922 kB / 481.6 MB, free: 29.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009985/0.2408, allocations: 222.3 kB / 481.8 MB, free: 29.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.877e-05/0.2409, allocations: 47.27 kB / 481.9 MB, free: 29.61 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.0003289/0.2413, allocations: 238.2 kB / 482.1 MB, free: 29.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.2414, allocations: 62.34 kB / 482.2 MB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.2415, allocations: 112.2 kB / 482.3 MB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.2415, allocations: 13.08 kB / 482.3 MB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/0.2415, allocations: 1.25 kB / 482.3 MB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.2415, allocations: 6.141 kB / 482.3 MB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007303/0.2488, allocations: 4.863 MB / 487.1 MB, free: 26.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.075e-05/0.2489, allocations: 27.06 kB / 487.2 MB, free: 26.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008551/0.2497, allocations: 353.3 kB / 487.5 MB, free: 26.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.341e-05/0.2497, allocations: 27.12 kB / 487.5 MB, free: 26.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.515e-05/0.2498, allocations: 48.67 kB / 487.6 MB, free: 26.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.55e-05/0.2498, allocations: 44.11 kB / 487.6 MB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.476e-05/0.2499, allocations: 30.72 kB / 487.7 MB, free: 26.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004563/0.2544, allocations: 3.088 MB / 490.8 MB, free: 25.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003419/0.2548, allocations: 168.9 kB / 490.9 MB, free: 25.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.396e-05/0.2549, allocations: 56.34 kB / 491 MB, free: 25.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000716/0.2556, allocations: 193.1 kB / 491.2 MB, free: 25.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/0.2559, allocations: 234.7 kB / 491.4 MB, free: 24.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.937e-05/0.256, allocations: 58.11 kB / 491.4 MB, free: 24.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002501/0.2562, allocations: 279.5 kB / 491.7 MB, free: 24.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2562, allocations: 0 / 491.7 MB, free: 24.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008349/0.2571, allocations: 234.9 kB / 491.9 MB, free: 24.78 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.004623/0.2617, allocations: 3.679 MB / 495.6 MB, free: 22.53 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004406/0.2661, allocations: 2.186 MB / 497.8 MB, free: 21.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.173e-05/0.2661, allocations: 3.781 kB / 497.8 MB, free: 21.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/0.2685, allocations: 1.068 MB / 498.9 MB, free: 21.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.2696, allocations: 146.9 kB / 499 MB, free: 21.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.2851, allocations: 12.45 MB / 0.4995 GB, free: 9.559 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.2854, allocations: 329.7 kB / 0.4998 GB, free: 9.211 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007282/0.2861, allocations: 205.9 kB / 0.5 GB, free: 9.008 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/0.2866, allocations: 220.4 kB / 0.5002 GB, free: 8.793 MB / 410.7 MB Notification: Performance of SimCode: time 2.104e-06/0.2866, allocations: 0 / 0.5002 GB, free: 8.793 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.3217, allocations: 23.94 MB / 0.5236 GB, free: 1.102 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.262/7.584, allocations: 0 / 0.5236 GB, free: 1.102 MB / 426.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.521722575649619]