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.0008669/0.0008669, 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.0008503/0.0008503, allocations: 170 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.9222/0.9222, allocations: 177.1 MB / 204.3 MB, free: 5.707 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.2457/0.2457, allocations: 34.26 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.312e-06/1.312e-06, allocations: 0 / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.134e-05/2.265e-05, allocations: 2.844 kB / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.1916/0.1916, allocations: 2.249 MB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1929, allocations: 0.9398 MB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.1931, allocations: 16.44 kB / 445.4 MB, free: 42.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.1934, allocations: 123.9 kB / 445.5 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.1935, allocations: 101.9 kB / 445.6 MB, free: 42.89 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.194, allocations: 294.5 kB / 445.9 MB, free: 42.86 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004315/0.1944, allocations: 0.721 MB / 446.6 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.1945, allocations: 47.11 kB / 446.6 MB, free: 42.55 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.1948, allocations: 396.3 kB / 447 MB, free: 42.37 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.195, allocations: 297.2 kB / 447.3 MB, free: 42.28 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.477e-05/0.1951, allocations: 67.78 kB / 447.4 MB, free: 42.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.168e-05/0.1952, allocations: 61.78 kB / 447.4 MB, free: 42.28 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.1953, allocations: 200.3 kB / 447.6 MB, free: 42.17 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.856e-05/0.1954, allocations: 173.6 kB / 447.8 MB, free: 42.07 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.1957, allocations: 0.6173 MB / 448.4 MB, free: 41.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1957, allocations: 0 / 448.4 MB, free: 41.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1957, allocations: 0 / 448.4 MB, free: 41.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1957, allocations: 0 / 448.4 MB, free: 41.82 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.00121/0.1969, allocations: 0.8826 MB / 449.3 MB, free: 41.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.197, allocations: 8.531 kB / 449.3 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.1e-05/0.197, allocations: 89.66 kB / 449.4 MB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.143e-05/0.1971, allocations: 65.36 kB / 449.5 MB, free: 41.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.1975, allocations: 316.7 kB / 449.8 MB, free: 41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.1977, allocations: 0.6775 MB / 450.5 MB, free: 40.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.1977, allocations: 41.03 kB / 450.5 MB, free: 40.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.1988, allocations: 0.8142 MB / 451.3 MB, free: 39.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1989, allocations: 192 / 451.3 MB, free: 39.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.1989, allocations: 21.75 kB / 451.3 MB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1989, allocations: 8.938 kB / 451.3 MB, free: 39.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.2007, allocations: 1.215 MB / 452.6 MB, free: 39.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.2021, allocations: 1.897 MB / 454.5 MB, free: 38.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.2036, allocations: 0.7426 MB / 455.2 MB, free: 38.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007577/0.2043, allocations: 465.9 kB / 455.7 MB, free: 37.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.555e-05/0.2044, allocations: 9.125 kB / 455.7 MB, free: 37.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.2044, allocations: 46.02 kB / 455.7 MB, free: 37.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.854e-06/0.2044, allocations: 0 / 455.7 MB, free: 37.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04181/0.2462, allocations: 15.55 MB / 471.3 MB, free: 34.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.2463, allocations: 94.83 kB / 471.4 MB, free: 34.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.2467, allocations: 412.3 kB / 471.8 MB, free: 34.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.2468, allocations: 44.7 kB / 471.8 MB, free: 33.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2469, allocations: 223.7 kB / 472 MB, free: 33.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.2471, allocations: 412.3 kB / 472.4 MB, free: 33.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003443/0.2474, allocations: 204 kB / 472.6 MB, free: 33.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.08e-05/0.2475, allocations: 380.2 kB / 473 MB, free: 33.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.2496, allocations: 1.352 MB / 474.3 MB, free: 32.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.252, allocations: 1.507 MB / 475.8 MB, free: 31.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004226/0.2562, allocations: 2.462 MB / 478.3 MB, free: 30.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.2562, allocations: 1.312 kB / 478.3 MB, free: 30.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00603/0.2622, allocations: 2.865 MB / 481.2 MB, free: 29.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.2623, allocations: 6.75 kB / 481.2 MB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.2623, allocations: 3.438 kB / 481.2 MB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.67e-05/0.2623, allocations: 8.625 kB / 481.2 MB, free: 29.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/0.2638, allocations: 411.2 kB / 481.6 MB, free: 29.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.46e-05/0.2638, allocations: 8.859 kB / 481.6 MB, free: 29.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.265, allocations: 220.5 kB / 481.8 MB, free: 29.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/0.2651, allocations: 43.52 kB / 481.9 MB, free: 29.64 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.0004681/0.2656, allocations: 235.6 kB / 482.1 MB, free: 29.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.2658, allocations: 66.95 kB / 482.2 MB, free: 29.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.2659, allocations: 107.5 kB / 482.3 MB, free: 29.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.2659, allocations: 12.81 kB / 482.3 MB, free: 29.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.866e-05/0.266, allocations: 4.562 kB / 482.3 MB, free: 29.31 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.266, allocations: 6.891 kB / 482.3 MB, free: 29.31 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007818/0.2738, allocations: 4.859 MB / 487.1 MB, free: 26.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/0.2738, allocations: 23.62 kB / 487.2 MB, free: 26.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008879/0.2747, allocations: 354.7 kB / 487.5 MB, free: 26.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.927e-05/0.2747, allocations: 31.5 kB / 487.5 MB, free: 26.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.2748, allocations: 48.47 kB / 487.6 MB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.429e-05/0.2749, allocations: 39.25 kB / 487.6 MB, free: 26.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.015e-05/0.275, allocations: 32.41 kB / 487.7 MB, free: 26.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005118/0.2801, allocations: 3.089 MB / 490.8 MB, free: 25.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004652/0.2805, allocations: 172.7 kB / 490.9 MB, free: 25.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.2807, allocations: 52.03 kB / 491 MB, free: 25.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008783/0.2815, allocations: 193.2 kB / 491.2 MB, free: 25.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004238/0.282, allocations: 231 kB / 491.4 MB, free: 24.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.573e-05/0.2821, allocations: 57.89 kB / 491.4 MB, free: 24.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003121/0.2824, allocations: 282.8 kB / 491.7 MB, free: 24.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2824, allocations: 0 / 491.7 MB, free: 24.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001011/0.2834, allocations: 231.3 kB / 491.9 MB, free: 24.81 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.004893/0.2883, allocations: 3.683 MB / 495.6 MB, free: 22.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003973/0.2922, allocations: 2.19 MB / 497.8 MB, free: 21.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.676e-05/0.2923, allocations: 6.625 kB / 497.8 MB, free: 21.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002093/0.2944, allocations: 1.067 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.0007955/0.2951, allocations: 146.7 kB / 499 MB, free: 21.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.309, allocations: 12.44 MB / 0.4995 GB, free: 9.559 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.3092, allocations: 321.8 kB / 0.4998 GB, free: 9.219 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006138/0.3098, allocations: 206 kB / 0.5 GB, free: 9.016 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004691/0.3103, allocations: 224.4 kB / 0.5002 GB, free: 8.797 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3103, allocations: 0 / 0.5002 GB, free: 8.797 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03201/0.3423, allocations: 23.94 MB / 0.5236 GB, free: 1.117 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/7.798, allocations: 3.938 kB / 0.5236 GB, free: 1.113 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_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.csv","/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] "" Variables in the reference:time,integrator.y,integrator1.y,integrator2.y,integrator3.y Variables in the result:time,integrator.y,integrator1.y,integrator2.y,integrator3.y [Calling sys.exit(0), Time elapsed: 9.966974881477654]