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.001889/0.001889, allocations: 99.53 kB / 20.97 MB, free: 3.449 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.001929/0.001929, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 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 1.564/1.564, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 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.3498/0.3498, allocations: 34.26 MB / 295.2 MB, free: 0.6406 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: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 377.2 MB, free: 2.906 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.004e-05/3.174e-05, allocations: 3.859 kB / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004118/0.00415, allocations: 2.317 MB / 379.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.006284, allocations: 0.9474 MB / 380.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.006466, allocations: 11.88 kB / 380.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000454/0.00692, allocations: 127.2 kB / 380.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.007199, allocations: 99.33 kB / 380.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007947/0.007993, allocations: 299.4 kB / 381 MB, free: 15.08 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000939/0.008932, allocations: 0.7289 MB / 381.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.009091, allocations: 37.27 kB / 381.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005389/0.00963, allocations: 399.2 kB / 382.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004563/0.01009, allocations: 295.1 kB / 382.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.01021, allocations: 60 kB / 382.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.01033, allocations: 67.94 kB / 382.6 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002557/0.01058, allocations: 203.4 kB / 382.8 MB, free: 13.31 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002342/0.01082, allocations: 175.6 kB / 382.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007839/0.0116, allocations: 0.6115 MB / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.0116, allocations: 0 / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.0116, allocations: 0 / 383.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.01161, allocations: 0 / 383.5 MB, free: 12.52 MB / 362.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.002323/0.01394, allocations: 0.9358 MB / 384.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.01398, allocations: 16.02 kB / 384.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.01419, allocations: 112.6 kB / 384.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.01481, allocations: 307.2 kB / 384.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006683/0.01548, allocations: 0.6552 MB / 385.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.01559, allocations: 48.36 kB / 385.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.01758, allocations: 0.7196 MB / 386.3 MB, free: 9.496 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.0176, allocations: 192 / 386.3 MB, free: 9.496 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.443e-05/0.01766, allocations: 20.12 kB / 386.3 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.01768, allocations: 16 kB / 386.4 MB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00356/0.02124, allocations: 0.9584 MB / 387.3 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003573/0.02482, allocations: 2.279 MB / 389.6 MB, free: 6.141 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.02761, allocations: 0.6619 MB / 390.3 MB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.02904, allocations: 376.2 kB / 390.6 MB, free: 5.082 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.129e-05/0.02913, allocations: 12.56 kB / 390.6 MB, free: 5.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.02918, allocations: 42.52 kB / 390.7 MB, free: 5.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 3.226e-06/0.02918, allocations: 4 kB / 390.7 MB, free: 5.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.04876/0.07794, allocations: 10.44 MB / 401.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.944e-05/0.07803, allocations: 90.11 kB / 401.2 MB, free: 10.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008981/0.07893, allocations: 458.5 kB / 401.7 MB, free: 9.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.07908, allocations: 45.7 kB / 401.7 MB, free: 9.855 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.07933, allocations: 284.3 kB / 402 MB, free: 9.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005301/0.07986, allocations: 448.4 kB / 402.4 MB, free: 9.129 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006521/0.08051, allocations: 236.5 kB / 402.6 MB, free: 8.891 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003773/0.08089, allocations: 0.5859 MB / 403.2 MB, free: 8.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003732/0.08462, allocations: 1.213 MB / 404.4 MB, free: 7.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003984/0.08861, allocations: 1.438 MB / 405.9 MB, free: 5.582 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007084/0.09569, allocations: 2.338 MB / 408.2 MB, free: 3.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.0957, allocations: 0 / 408.2 MB, free: 3.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008711/0.1044, allocations: 2.664 MB / 410.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.487e-05/0.1044, allocations: 8 kB / 410.9 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.1045, allocations: 3.984 kB / 410.9 MB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.509e-05/0.1045, allocations: 12 kB / 410.9 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/0.1073, allocations: 355.7 kB / 411.3 MB, free: 144 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.841e-05/0.1074, allocations: 12 kB / 411.3 MB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.1093, allocations: 155.8 kB / 411.4 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/0.1095, allocations: 47.98 kB / 411.5 MB, free: 15.93 MB / 394.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.0005377/0.11, allocations: 252.3 kB / 411.7 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004053/0.1105, allocations: 111.6 kB / 411.8 MB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003533/0.1108, allocations: 104.7 kB / 411.9 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.1108, allocations: 12 kB / 411.9 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.1108, allocations: 0 / 411.9 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.1108, allocations: 3.984 kB / 411.9 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.1239, allocations: 4.97 MB / 416.9 MB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/0.1239, allocations: 24.12 kB / 416.9 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/0.1253, allocations: 307.4 kB / 417.2 MB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.206e-05/0.1254, allocations: 32 kB / 417.3 MB, free: 9.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.1255, allocations: 48 kB / 417.3 MB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.345e-05/0.1255, allocations: 39.86 kB / 417.4 MB, free: 9.594 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.139e-05/0.1255, allocations: 31.88 kB / 417.4 MB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007469/0.133, allocations: 3.066 MB / 420.4 MB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005275/0.1335, allocations: 179.3 kB / 420.6 MB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.1337, allocations: 51.98 kB / 420.7 MB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.1349, allocations: 139.9 kB / 420.8 MB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000554/0.1354, allocations: 227.2 kB / 421 MB, free: 5.508 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.1355, allocations: 59.98 kB / 421.1 MB, free: 5.449 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000375/0.1359, allocations: 275.1 kB / 421.4 MB, free: 5.176 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1359, allocations: 0 / 421.4 MB, free: 5.176 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001094/0.137, allocations: 235.9 kB / 421.6 MB, free: 4.945 MB / 394.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.000281/0.1373, allocations: 170.7 kB / 421.8 MB, free: 4.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006469/0.1438, allocations: 2.021 MB / 423.8 MB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.779e-05/0.1438, allocations: 4 kB / 423.8 MB, free: 2.746 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002239/0.146, allocations: 0.6854 MB / 424.5 MB, free: 2.066 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.1474, allocations: 207.5 kB / 424.7 MB, free: 1.867 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004901/0.1523, allocations: 2.188 MB / 426.9 MB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.1527, allocations: 321.8 kB / 427.2 MB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0011/0.1538, allocations: 189.9 kB / 427.4 MB, free: 14.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006211/0.1545, allocations: 76.48 kB / 427.4 MB, free: 14.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.382e-06/0.1545, allocations: 0 / 427.4 MB, free: 14.64 MB / 410.7 MB Notification: Performance of Templates: time 0.1785/0.3329, allocations: 18.13 MB / 445.6 MB, free: 99.94 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 5.825186618953012]