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.001284/0.001284, allocations: 79.69 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.001613/0.001613, 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.9173/0.9173, allocations: 177.1 MB / 204.3 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.2726/0.2726, allocations: 32.79 MB / 293.5 MB, free: 1.234 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.653e-06/1.653e-06, allocations: 0 / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.463e-05, allocations: 4.25 kB / 439.6 MB, free: 4.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00263/0.002655, allocations: 2.244 MB / 441.8 MB, free: 1.992 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.00426, allocations: 0.9512 MB / 442.8 MB, free: 1.035 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002974/0.004558, allocations: 15.88 kB / 442.8 MB, free: 1.02 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007295/0.005287, allocations: 115.2 kB / 442.9 MB, free: 0.9062 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003015/0.005589, allocations: 103.3 kB / 443 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008296/0.006418, allocations: 295.4 kB / 443.3 MB, free: 0.5156 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1893/0.1957, allocations: 0.7176 MB / 444 MB, free: 42.97 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.1959, allocations: 43.88 kB / 444.1 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005251/0.1964, allocations: 394.3 kB / 444.4 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.1967, allocations: 294.2 kB / 444.7 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.625e-05/0.1968, allocations: 64.17 kB / 444.8 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.659e-05/0.1968, allocations: 60.41 kB / 444.8 MB, free: 42.96 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.197, allocations: 203.3 kB / 445 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1971, allocations: 173.3 kB / 445.2 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000387/0.1975, allocations: 0.619 MB / 445.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1975, allocations: 0 / 445.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1975, allocations: 3.938 kB / 445.8 MB, free: 42.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.1975, allocations: 2.125 kB / 445.8 MB, free: 42.9 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.001216/0.1987, allocations: 0.8777 MB / 446.7 MB, free: 42.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1987, allocations: 7.688 kB / 446.7 MB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.427e-05/0.1988, allocations: 90.27 kB / 446.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.1989, allocations: 66.33 kB / 446.9 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004139/0.1993, allocations: 321 kB / 447.2 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002478/0.1995, allocations: 0.6756 MB / 447.9 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.1996, allocations: 38.97 kB / 447.9 MB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.2007, allocations: 0.8161 MB / 448.7 MB, free: 41.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.2007, allocations: 4.375 kB / 448.7 MB, free: 41.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/0.2007, allocations: 20.75 kB / 448.7 MB, free: 41.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.587e-06/0.2007, allocations: 11.34 kB / 448.8 MB, free: 41.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.2025, allocations: 1.211 MB / 450 MB, free: 41.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.204, allocations: 1.889 MB / 451.9 MB, free: 40.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.2054, allocations: 0.7554 MB / 452.6 MB, free: 39.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007607/0.2062, allocations: 464.2 kB / 453.1 MB, free: 39.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.124e-05/0.2062, allocations: 9.625 kB / 453.1 MB, free: 39.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.2063, allocations: 43.72 kB / 453.1 MB, free: 39.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.554e-06/0.2063, allocations: 0 / 453.1 MB, free: 39.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04387/0.2501, allocations: 15.55 MB / 468.7 MB, free: 36.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.2502, allocations: 90.11 kB / 468.8 MB, free: 36.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003786/0.2506, allocations: 425.1 kB / 469.2 MB, free: 35.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.2507, allocations: 44.7 kB / 469.2 MB, free: 35.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.615e-05/0.2508, allocations: 222.5 kB / 469.4 MB, free: 35.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.251, allocations: 416.9 kB / 469.8 MB, free: 35.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003404/0.2513, allocations: 198.7 kB / 470 MB, free: 35.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.657e-05/0.2514, allocations: 378 kB / 470.4 MB, free: 34.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/0.2534, allocations: 1.355 MB / 471.8 MB, free: 34.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002006/0.2554, allocations: 1.502 MB / 473.3 MB, free: 33.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004085/0.2595, allocations: 2.46 MB / 475.7 MB, free: 32.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.2595, allocations: 1.281 kB / 475.7 MB, free: 32.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.005376/0.2649, allocations: 2.853 MB / 478.6 MB, free: 31.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.2649, allocations: 5.75 kB / 478.6 MB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.265, allocations: 6.031 kB / 478.6 MB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.71e-05/0.265, allocations: 14 kB / 478.6 MB, free: 31.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.2665, allocations: 410.1 kB / 479 MB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.899e-05/0.2665, allocations: 8.516 kB / 479 MB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.2676, allocations: 224.4 kB / 479.2 MB, free: 31.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.2677, allocations: 39.75 kB / 479.3 MB, free: 31.62 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.0003854/0.2681, allocations: 244.5 kB / 479.5 MB, free: 31.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.2682, allocations: 65.73 kB / 479.6 MB, free: 31.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.2684, allocations: 109 kB / 479.7 MB, free: 31.31 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.2684, allocations: 11.25 kB / 479.7 MB, free: 31.31 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-05/0.2684, allocations: 1.25 kB / 479.7 MB, free: 31.31 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.2684, allocations: 7.438 kB / 479.7 MB, free: 31.31 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008636/0.277, allocations: 4.861 MB / 484.6 MB, free: 29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.988e-05/0.2771, allocations: 20.62 kB / 484.6 MB, free: 29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000957/0.278, allocations: 359.7 kB / 484.9 MB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.3e-05/0.2781, allocations: 27.47 kB / 485 MB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.228e-05/0.2782, allocations: 43.95 kB / 485 MB, free: 28.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.212e-05/0.2782, allocations: 39.92 kB / 485 MB, free: 28.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.413e-05/0.2782, allocations: 35.44 kB / 485.1 MB, free: 28.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004971/0.2832, allocations: 3.087 MB / 488.2 MB, free: 27.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003984/0.2836, allocations: 170.1 kB / 488.3 MB, free: 27.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.897e-05/0.2837, allocations: 51.97 kB / 488.4 MB, free: 27.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007691/0.2845, allocations: 195.3 kB / 488.6 MB, free: 27.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004287/0.2849, allocations: 230.7 kB / 488.8 MB, free: 27.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.338e-05/0.285, allocations: 58.11 kB / 488.8 MB, free: 27.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003095/0.2853, allocations: 285.1 kB / 489.1 MB, free: 26.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.2853, allocations: 0 / 489.1 MB, free: 26.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008657/0.2861, allocations: 230.7 kB / 489.3 MB, free: 26.88 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.005179/0.2913, allocations: 3.688 MB / 493 MB, free: 24.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004636/0.2959, allocations: 2.185 MB / 495.2 MB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-05/0.296, allocations: 2.469 kB / 495.2 MB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002279/0.2983, allocations: 1.063 MB / 496.3 MB, free: 23.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009996/0.2993, allocations: 157.1 kB / 496.4 MB, free: 23.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/0.3153, allocations: 12.44 MB / 0.497 GB, free: 13.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.3156, allocations: 333.8 kB / 0.4973 GB, free: 12.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007817/0.3164, allocations: 206 kB / 0.4975 GB, free: 12.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.3169, allocations: 216.4 kB / 0.4977 GB, free: 12.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.673e-06/0.3169, allocations: 0 / 0.4977 GB, free: 12.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0352/0.3521, allocations: 23.95 MB / 0.5211 GB, free: 4.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.792, allocations: 4.062 kB / 0.5211 GB, free: 4.816 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 & 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/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] "" 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.99360060505569]