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.001464/0.001464, allocations: 112 kB / 20.48 MB, free: 1.27 MB / 14.72 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.00186/0.00186, allocations: 207.3 kB / 23.77 MB, free: 4.445 MB / 14.72 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 1.528/1.528, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] 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.2344/0.2344, allocations: 46.95 MB / 360.9 MB, free: 3.891 MB / 286.1 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 0.002272/0.002272, allocations: 79.88 kB / 0.4962 GB, free: 7.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3109, allocations: 66.08 MB / 0.5607 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003884/0.3147, allocations: 2.256 MB / 0.5629 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.3166, allocations: 0.9408 MB / 0.5639 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.3168, allocations: 7.938 kB / 0.5639 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003854/0.3172, allocations: 123.2 kB / 0.564 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002529/0.3174, allocations: 95.33 kB / 0.5641 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006993/0.3181, allocations: 291.5 kB / 0.5644 GB, free: 300 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007996/0.3189, allocations: 0.7249 MB / 0.5651 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.3191, allocations: 51.06 kB / 0.5651 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003553/0.3194, allocations: 287.2 kB / 0.5654 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004744/0.3199, allocations: 334.6 kB / 0.5657 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.32, allocations: 60 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.648e-05/0.3201, allocations: 64 kB / 0.5658 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.3203, allocations: 195.4 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.3206, allocations: 207 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006173/0.3212, allocations: 0.5759 MB / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3212, allocations: 0 / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3212, allocations: 0 / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.3212, allocations: 0 / 0.5668 GB, free: 13.81 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.002614/0.3238, allocations: 0.8792 MB / 0.5676 GB, free: 12.9 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.3239, allocations: 16.02 kB / 0.5676 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.324, allocations: 86.72 kB / 0.5677 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.3241, allocations: 64.61 kB / 0.5678 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007331/0.3248, allocations: 321.1 kB / 0.5681 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006289/0.3255, allocations: 0.6669 MB / 0.5688 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.98e-05/0.3256, allocations: 48.3 kB / 0.5688 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.3278, allocations: 0.8202 MB / 0.5696 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.3278, allocations: 0 / 0.5696 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.955e-05/0.3279, allocations: 20 kB / 0.5696 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.3279, allocations: 12 kB / 0.5696 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003887/0.3318, allocations: 1.208 MB / 0.5708 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.3348, allocations: 1.891 MB / 0.5727 GB, free: 7.465 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002981/0.3378, allocations: 0.7559 MB / 0.5734 GB, free: 6.691 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.3395, allocations: 474.4 kB / 0.5738 GB, free: 6.223 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.066e-05/0.3395, allocations: 8.562 kB / 0.5739 GB, free: 6.215 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.3396, allocations: 47.56 kB / 0.5739 GB, free: 6.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.414e-06/0.3396, allocations: 0 / 0.5739 GB, free: 6.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09212/0.4317, allocations: 15.53 MB / 0.5891 GB, free: 6.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.431e-05/0.4318, allocations: 98.03 kB / 0.5892 GB, free: 6.414 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005556/0.4323, allocations: 413.5 kB / 0.5896 GB, free: 5.996 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.4325, allocations: 49.7 kB / 0.5896 GB, free: 5.941 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.4327, allocations: 217.6 kB / 0.5898 GB, free: 5.723 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004105/0.4331, allocations: 424.3 kB / 0.5902 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005661/0.4336, allocations: 202.9 kB / 0.5904 GB, free: 5.098 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.4338, allocations: 374.8 kB / 0.5908 GB, free: 4.723 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003976/0.4378, allocations: 1.357 MB / 0.5921 GB, free: 3.367 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004135/0.4419, allocations: 1.513 MB / 0.5936 GB, free: 1.805 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007462/0.4494, allocations: 2.451 MB / 0.596 GB, free: 15.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4494, allocations: 0 / 0.596 GB, free: 15.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008512/0.4579, allocations: 2.855 MB / 0.5988 GB, free: 12.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.458, allocations: 8 kB / 0.5988 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.458, allocations: 4 kB / 0.5988 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.99e-05/0.458, allocations: 8 kB / 0.5988 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002886/0.4609, allocations: 411.6 kB / 0.5992 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.352e-05/0.4609, allocations: 11.94 kB / 0.5992 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/0.463, allocations: 223.7 kB / 0.5994 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.4632, allocations: 39.98 kB / 0.5994 GB, free: 11.75 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.0005066/0.4637, allocations: 243.2 kB / 0.5997 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.4639, allocations: 67.56 kB / 0.5997 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002346/0.4641, allocations: 108.7 kB / 0.5998 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.4641, allocations: 12 kB / 0.5998 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.4642, allocations: 3.938 kB / 0.5998 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.4642, allocations: 7.984 kB / 0.5998 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01263/0.4768, allocations: 4.856 MB / 0.6046 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.174e-05/0.4768, allocations: 20 kB / 0.6046 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.4784, allocations: 359.8 kB / 0.605 GB, free: 5.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.809e-05/0.4785, allocations: 28 kB / 0.605 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.767e-05/0.4786, allocations: 48 kB / 0.605 GB, free: 5.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.939e-05/0.4786, allocations: 47.73 kB / 0.6051 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-05/0.4786, allocations: 31.88 kB / 0.6051 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008146/0.4868, allocations: 3.143 MB / 0.6082 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000515/0.4873, allocations: 167.5 kB / 0.6083 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.4874, allocations: 51.98 kB / 0.6084 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.4888, allocations: 187.8 kB / 0.6086 GB, free: 1.758 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004753/0.4893, allocations: 227.2 kB / 0.6088 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.484e-05/0.4894, allocations: 56 kB / 0.6088 GB, free: 1.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003624/0.4897, allocations: 287.1 kB / 0.6091 GB, free: 1.199 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4897, allocations: 3.938 kB / 0.6091 GB, free: 1.195 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001019/0.4908, allocations: 240 kB / 0.6093 GB, free: 0.9609 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.008678/0.4994, allocations: 3.719 MB / 0.613 GB, free: 12.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007008/0.5064, allocations: 2.189 MB / 0.6151 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.861e-05/0.5065, allocations: 4 kB / 0.6151 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003766/0.5102, allocations: 1.063 MB / 0.6161 GB, free: 9.688 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.5117, allocations: 149.9 kB / 0.6163 GB, free: 9.547 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0294/0.5411, allocations: 12.48 MB / 0.6285 GB, free: 12.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.5415, allocations: 337.6 kB / 0.6288 GB, free: 11.96 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.5425, allocations: 214 kB / 0.629 GB, free: 11.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007439/0.5433, allocations: 219.4 kB / 0.6292 GB, free: 11.54 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5433, allocations: 0 / 0.6292 GB, free: 11.54 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05842/0.6017, allocations: 23.98 MB / 0.6526 GB, free: 3.73 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.54, allocations: 10.25 kB / 0.6526 GB, free: 3.723 MB / 494.1 MB " [Timeout remaining time 647] (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/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_trunk_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: 15.667737608775496]