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.001778/0.001778, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001912/0.001912, allocations: 202.1 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.365/1.365, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.2344/0.2344, allocations: 46.95 MB / 360.9 MB, free: 4.117 MB / 286.1 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 0.001906/0.001906, allocations: 63.91 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2849, allocations: 66.04 MB / 0.5606 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003447/0.2883, allocations: 2.249 MB / 0.5628 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.2899, allocations: 0.9446 MB / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.29, allocations: 7.938 kB / 0.5637 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.2904, allocations: 119.2 kB / 0.5638 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.2906, allocations: 107.3 kB / 0.5639 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005956/0.2912, allocations: 295.5 kB / 0.5642 GB, free: 484 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007151/0.2919, allocations: 0.7171 MB / 0.5649 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.2921, allocations: 51.08 kB / 0.565 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003205/0.2924, allocations: 299.1 kB / 0.5652 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004014/0.2928, allocations: 350.7 kB / 0.5656 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.2929, allocations: 60 kB / 0.5656 GB, free: 15 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.435e-05/0.293, allocations: 64 kB / 0.5657 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.2932, allocations: 203.4 kB / 0.5659 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.2934, allocations: 207 kB / 0.5661 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005597/0.2939, allocations: 0.5759 MB / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2939, allocations: 4 kB / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.294, allocations: 0 / 0.5667 GB, free: 13.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.294, allocations: 0 / 0.5667 GB, free: 13.96 MB / 414.1 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.002209/0.2962, allocations: 0.8753 MB / 0.5675 GB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2962, allocations: 12.03 kB / 0.5675 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.2963, allocations: 86.72 kB / 0.5676 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.2964, allocations: 72.59 kB / 0.5677 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005734/0.297, allocations: 325 kB / 0.568 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005592/0.2976, allocations: 0.6708 MB / 0.5686 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.741e-05/0.2976, allocations: 36.38 kB / 0.5687 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002066/0.2997, allocations: 0.8163 MB / 0.5695 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.2997, allocations: 11.94 kB / 0.5695 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.2998, allocations: 23.94 kB / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.2998, allocations: 8 kB / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003612/0.3034, allocations: 1.208 MB / 0.5707 GB, free: 9.578 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.3062, allocations: 1.887 MB / 0.5725 GB, free: 7.609 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002709/0.3089, allocations: 0.7626 MB / 0.5733 GB, free: 6.832 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.3104, allocations: 466.4 kB / 0.5737 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.872e-05/0.3105, allocations: 8.562 kB / 0.5737 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.3105, allocations: 47.62 kB / 0.5738 GB, free: 6.309 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.645e-06/0.3105, allocations: 0 / 0.5738 GB, free: 6.309 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.08291/0.3934, allocations: 15.54 MB / 0.589 GB, free: 6.668 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.283e-05/0.3935, allocations: 94.05 kB / 0.589 GB, free: 6.559 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005202/0.394, allocations: 413.5 kB / 0.5894 GB, free: 6.145 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001637/0.3942, allocations: 45.7 kB / 0.5895 GB, free: 6.094 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.3944, allocations: 221.6 kB / 0.5897 GB, free: 5.871 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004171/0.3948, allocations: 424.3 kB / 0.5901 GB, free: 5.453 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000526/0.3953, allocations: 202.8 kB / 0.5903 GB, free: 5.246 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.3955, allocations: 374.8 kB / 0.5906 GB, free: 4.871 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003682/0.3992, allocations: 1.357 MB / 0.592 GB, free: 3.516 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003815/0.403, allocations: 1.513 MB / 0.5935 GB, free: 1.953 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006891/0.4099, allocations: 2.451 MB / 0.5958 GB, free: 15.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4099, allocations: 0 / 0.5958 GB, free: 15.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008029/0.4179, allocations: 2.855 MB / 0.5986 GB, free: 12.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.4179, allocations: 8 kB / 0.5986 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.418, allocations: 4.25 kB / 0.5986 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.418, allocations: 12 kB / 0.5987 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/0.4206, allocations: 407.4 kB / 0.599 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/0.4206, allocations: 19.88 kB / 0.5991 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.4226, allocations: 219.7 kB / 0.5993 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/0.4227, allocations: 43.98 kB / 0.5993 GB, free: 11.89 MB / 446.1 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.0004792/0.4232, allocations: 233.9 kB / 0.5995 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.4234, allocations: 67.52 kB / 0.5996 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.4237, allocations: 108.7 kB / 0.5997 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.4237, allocations: 12 kB / 0.5997 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.4237, allocations: 3.938 kB / 0.5997 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.4237, allocations: 7.984 kB / 0.5997 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.4355, allocations: 4.849 MB / 0.6045 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.724e-05/0.4355, allocations: 20 kB / 0.6045 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/0.437, allocations: 360.2 kB / 0.6048 GB, free: 5.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-05/0.437, allocations: 28 kB / 0.6049 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.516e-05/0.4371, allocations: 48 kB / 0.6049 GB, free: 5.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.072e-05/0.4372, allocations: 39.86 kB / 0.6049 GB, free: 5.797 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-05/0.4372, allocations: 39.81 kB / 0.605 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007546/0.4447, allocations: 3.143 MB / 0.608 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/0.4452, allocations: 167.5 kB / 0.6082 GB, free: 2.148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.4453, allocations: 51.98 kB / 0.6083 GB, free: 2.098 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.4466, allocations: 191.8 kB / 0.6084 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004215/0.447, allocations: 227.2 kB / 0.6087 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.6e-05/0.4471, allocations: 59.98 kB / 0.6087 GB, free: 1.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003341/0.4475, allocations: 279.1 kB / 0.609 GB, free: 1.355 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4475, allocations: 0 / 0.609 GB, free: 1.355 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009704/0.4484, allocations: 236 kB / 0.6092 GB, free: 1.125 MB / 446.1 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.007947/0.4564, allocations: 3.727 MB / 0.6128 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006488/0.4629, allocations: 2.187 MB / 0.615 GB, free: 10.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/0.4629, allocations: 4 kB / 0.615 GB, free: 10.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003538/0.4664, allocations: 1.067 MB / 0.616 GB, free: 9.836 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.4677, allocations: 163.1 kB / 0.6162 GB, free: 9.684 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02816/0.4959, allocations: 12.48 MB / 0.6284 GB, free: 12.46 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004361/0.4963, allocations: 333.6 kB / 0.6287 GB, free: 12.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001003/0.4973, allocations: 201.9 kB / 0.6289 GB, free: 11.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006805/0.498, allocations: 219.4 kB / 0.6291 GB, free: 11.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.498, allocations: 3.938 kB / 0.6291 GB, free: 11.69 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05603/0.554, allocations: 24.24 MB / 0.6528 GB, free: 3.711 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.82, allocations: 11.06 kB / 0.6528 GB, free: 3.703 MB / 494.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/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: 14.740823567000916]