Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001019/0.001019, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001674/0.001674, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9333/0.9333, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2533/0.2533, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.21e-05, allocations: 2.281 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.1947/0.1948, allocations: 2.245 MB / 444.4 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.1959, allocations: 0.9568 MB / 445.3 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.196, allocations: 13.72 kB / 445.4 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.1964, allocations: 113 kB / 445.5 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.1966, allocations: 112.1 kB / 445.6 MB, free: 42.85 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004577/0.197, allocations: 294.2 kB / 445.9 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004437/0.1975, allocations: 0.7291 MB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.1976, allocations: 38.23 kB / 446.6 MB, free: 42.5 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000278/0.1979, allocations: 396.1 kB / 447 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.1982, allocations: 287.4 kB / 447.3 MB, free: 42.24 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-05/0.1982, allocations: 62.75 kB / 447.4 MB, free: 42.24 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.758e-05/0.1983, allocations: 65.28 kB / 447.4 MB, free: 42.24 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1984, allocations: 205.5 kB / 447.6 MB, free: 42.13 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.05e-05/0.1985, allocations: 176.7 kB / 447.8 MB, free: 42.03 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.1988, allocations: 0.6129 MB / 448.4 MB, free: 41.78 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1988, allocations: 6.844 kB / 448.4 MB, free: 41.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1988, allocations: 4 kB / 448.4 MB, free: 41.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1989, allocations: 0 / 448.4 MB, free: 41.77 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.001278/0.2001, allocations: 0.8737 MB / 449.3 MB, free: 41.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.2002, allocations: 10.69 kB / 449.3 MB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.324e-05/0.2003, allocations: 89.72 kB / 449.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.082e-05/0.2003, allocations: 64.67 kB / 449.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.2008, allocations: 319.1 kB / 449.8 MB, free: 40.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003146/0.2012, allocations: 0.6701 MB / 450.4 MB, free: 40.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.2012, allocations: 41.69 kB / 450.5 MB, free: 40.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.2024, allocations: 0.8182 MB / 451.3 MB, free: 39.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.2025, allocations: 3.375 kB / 451.3 MB, free: 39.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/0.2025, allocations: 22.84 kB / 451.3 MB, free: 39.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.2025, allocations: 14.56 kB / 451.3 MB, free: 39.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/0.2043, allocations: 1.209 MB / 452.5 MB, free: 39.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.2058, allocations: 1.892 MB / 454.4 MB, free: 38.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.2072, allocations: 0.7573 MB / 455.2 MB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007994/0.208, allocations: 465 kB / 455.6 MB, free: 37.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.86e-05/0.208, allocations: 6.375 kB / 455.7 MB, free: 37.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.2081, allocations: 41.59 kB / 455.7 MB, free: 37.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.254e-06/0.2081, allocations: 3.938 kB / 455.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04774/0.2558, allocations: 15.55 MB / 471.2 MB, free: 34.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.2559, allocations: 90.2 kB / 471.3 MB, free: 34.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.2562, allocations: 414.1 kB / 471.7 MB, free: 33.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.2564, allocations: 48.11 kB / 471.8 MB, free: 33.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.793e-05/0.2565, allocations: 225.4 kB / 472 MB, free: 33.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.2567, allocations: 408.2 kB / 472.4 MB, free: 33.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003547/0.257, allocations: 201 kB / 472.6 MB, free: 33.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.579e-05/0.2571, allocations: 379.3 kB / 473 MB, free: 32.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.2594, allocations: 1.356 MB / 474.3 MB, free: 32.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002499/0.2619, allocations: 1.51 MB / 475.8 MB, free: 31.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004357/0.2662, allocations: 2.452 MB / 478.3 MB, free: 30.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.2662, allocations: 1.781 kB / 478.3 MB, free: 30.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.005338/0.2716, allocations: 2.856 MB / 481.2 MB, free: 29.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.2716, allocations: 6.375 kB / 481.2 MB, free: 29.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.2716, allocations: 7.469 kB / 481.2 MB, free: 29.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-05/0.2717, allocations: 11.81 kB / 481.2 MB, free: 29.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.2731, allocations: 406.9 kB / 481.6 MB, free: 29.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.524e-05/0.2732, allocations: 13.91 kB / 481.6 MB, free: 29.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.2743, allocations: 219.7 kB / 481.8 MB, free: 29.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.2744, allocations: 44.12 kB / 481.8 MB, free: 29.58 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.0003749/0.2747, allocations: 238.1 kB / 482.1 MB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.2749, allocations: 61.66 kB / 482.1 MB, free: 29.36 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.275, allocations: 108.8 kB / 482.2 MB, free: 29.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.275, allocations: 12.03 kB / 482.3 MB, free: 29.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/0.275, allocations: 1.859 kB / 482.3 MB, free: 29.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.2751, allocations: 6.672 kB / 482.3 MB, free: 29.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007756/0.2828, allocations: 4.857 MB / 487.1 MB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/0.2828, allocations: 21.97 kB / 487.1 MB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008309/0.2837, allocations: 359.4 kB / 487.5 MB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.476e-05/0.2837, allocations: 27.78 kB / 487.5 MB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.2838, allocations: 52.23 kB / 487.6 MB, free: 26.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.974e-05/0.2838, allocations: 43.42 kB / 487.6 MB, free: 26.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.9e-05/0.2838, allocations: 36.12 kB / 487.6 MB, free: 26.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004676/0.2885, allocations: 3.085 MB / 490.7 MB, free: 25.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004245/0.2889, allocations: 168.6 kB / 490.9 MB, free: 25.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.379e-05/0.289, allocations: 52.59 kB / 490.9 MB, free: 25.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007679/0.2898, allocations: 194.8 kB / 491.1 MB, free: 25.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003846/0.2902, allocations: 234.2 kB / 491.4 MB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-05/0.2902, allocations: 54.7 kB / 491.4 MB, free: 24.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002753/0.2905, allocations: 286.3 kB / 491.7 MB, free: 24.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2905, allocations: 0 / 491.7 MB, free: 24.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008998/0.2914, allocations: 231.1 kB / 491.9 MB, free: 24.75 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.005259/0.2967, allocations: 3.687 MB / 495.6 MB, free: 22.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004787/0.3015, allocations: 2.185 MB / 497.8 MB, free: 21.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.671e-05/0.3015, allocations: 3.188 kB / 497.8 MB, free: 21.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00234/0.3038, allocations: 1.063 MB / 498.9 MB, free: 21.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009658/0.3048, allocations: 157.9 kB / 499 MB, free: 21.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01472/0.3195, allocations: 12.45 MB / 0.4995 GB, free: 9.449 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.3198, allocations: 333.7 kB / 0.4998 GB, free: 9.098 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006961/0.3205, allocations: 202 kB / 0.5 GB, free: 8.898 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004733/0.3209, allocations: 220.4 kB / 0.5002 GB, free: 8.684 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/0.3209, allocations: 0 / 0.5002 GB, free: 8.684 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03518/0.3561, allocations: 23.92 MB / 0.5236 GB, free: 0.918 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.471/7.827, allocations: 19.52 kB / 0.5236 GB, free: 0.9023 MB / 426.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 10.08540664613247]