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.001839/0.001839, allocations: 84.95 kB / 20.68 MB, free: 1.035 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.002791/0.002791, allocations: 158.2 kB / 23.95 MB, free: 4.168 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.53/1.53, allocations: 177 MB / 204.1 MB, free: 9.176 MB / 190.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.2202/0.2202, allocations: 34.27 MB / 294.8 MB, free: 14.55 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: 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.383e-06/1.383e-06, allocations: 0 / 442.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.829e-05/2.968e-05, allocations: 2.281 kB / 442.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004236/0.004266, allocations: 2.251 MB / 444.9 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.006427, allocations: 0.9474 MB / 445.8 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003022/0.006729, allocations: 11.94 kB / 445.9 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004601/0.007189, allocations: 119.2 kB / 446 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.007578, allocations: 111.2 kB / 446.1 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008312/0.00841, allocations: 287.5 kB / 446.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009666/0.009376, allocations: 0.725 MB / 447.1 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.009549, allocations: 49.19 kB / 447.1 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006413/0.01019, allocations: 395.2 kB / 447.5 MB, free: 436 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005418/0.01073, allocations: 291.2 kB / 447.8 MB, free: 144 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.01089, allocations: 64 kB / 447.9 MB, free: 80 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.01103, allocations: 64 kB / 447.9 MB, free: 16 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1966/0.2077, allocations: 198.4 kB / 448.1 MB, free: 16.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.208, allocations: 174.2 kB / 448.3 MB, free: 16.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009063/0.2089, allocations: 0.617 MB / 448.9 MB, free: 16.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2089, allocations: 0 / 448.9 MB, free: 16.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2089, allocations: 1.25 kB / 448.9 MB, free: 16.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.2089, allocations: 0 / 448.9 MB, free: 16.19 MB / 366.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.002551/0.2114, allocations: 0.8777 MB / 449.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.2115, allocations: 10.44 kB / 449.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2116, allocations: 69.39 kB / 449.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006552/0.2123, allocations: 319.9 kB / 450.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004276/0.2127, allocations: 0.6684 MB / 450.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.89e-05/0.2128, allocations: 39.59 kB / 450.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.2151, allocations: 0.8191 MB / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.2152, allocations: 5.984 kB / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.834e-05/0.2152, allocations: 17.31 kB / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.2152, allocations: 14.22 kB / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004059/0.2193, allocations: 1.208 MB / 453 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.2219, allocations: 1.849 MB / 454.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00315/0.2251, allocations: 0.7505 MB / 455.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.2269, allocations: 464.6 kB / 456 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-05/0.2269, allocations: 8.562 kB / 456 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.227, allocations: 42.62 kB / 456.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.775e-06/0.227, allocations: 0 / 456.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.09587/0.3228, allocations: 15.56 MB / 471.6 MB, free: 7.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.3229, allocations: 91.27 kB / 471.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004778/0.3233, allocations: 426.9 kB / 472.1 MB, free: 6.961 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.3235, allocations: 45.08 kB / 472.2 MB, free: 6.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.602e-05/0.3236, allocations: 214.8 kB / 472.4 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/0.3239, allocations: 414.3 kB / 472.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005256/0.3244, allocations: 201.1 kB / 473 MB, free: 6.238 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.085e-05/0.3245, allocations: 385.5 kB / 473.3 MB, free: 5.871 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003665/0.3282, allocations: 1.35 MB / 474.7 MB, free: 5.145 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00378/0.3319, allocations: 1.507 MB / 476.2 MB, free: 4.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006506/0.3385, allocations: 2.46 MB / 478.7 MB, free: 1.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.3385, allocations: 9.812 kB / 478.7 MB, free: 1.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008093/0.3465, allocations: 2.85 MB / 481.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.3466, allocations: 8.062 kB / 481.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.3466, allocations: 7.469 kB / 481.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.666e-05/0.3466, allocations: 8 kB / 481.5 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.3497, allocations: 408.8 kB / 481.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/0.3497, allocations: 15.45 kB / 482 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/0.352, allocations: 219.7 kB / 482.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.3522, allocations: 39.98 kB / 482.2 MB, free: 14.12 MB / 382.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.0005797/0.3528, allocations: 235.1 kB / 482.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.353, allocations: 67.58 kB / 482.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002834/0.3533, allocations: 108.7 kB / 482.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.3533, allocations: 15.94 kB / 482.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/0.3534, allocations: 0 / 482.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.3534, allocations: 11.97 kB / 482.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.3663, allocations: 4.791 MB / 487.4 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-05/0.3663, allocations: 20 kB / 487.5 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.368, allocations: 357.7 kB / 487.8 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.981e-05/0.368, allocations: 31.94 kB / 487.8 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.3681, allocations: 52 kB / 487.9 MB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-05/0.3681, allocations: 43.8 kB / 487.9 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.661e-05/0.3682, allocations: 31.88 kB / 488 MB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008515/0.3767, allocations: 3.077 MB / 491 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006098/0.3773, allocations: 183.4 kB / 491.2 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.3774, allocations: 47.98 kB / 491.3 MB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.3789, allocations: 195.8 kB / 491.5 MB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005092/0.3794, allocations: 215.2 kB / 491.7 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.3795, allocations: 61.52 kB / 491.7 MB, free: 4.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004051/0.3799, allocations: 287.1 kB / 492 MB, free: 3.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3799, allocations: 0 / 492 MB, free: 3.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001049/0.381, allocations: 232 kB / 492.2 MB, free: 3.57 MB / 382.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.0002624/0.3813, allocations: 166.7 kB / 492.4 MB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00719/0.3884, allocations: 2.187 MB / 494.6 MB, free: 1.215 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.637e-05/0.3885, allocations: 4 kB / 494.6 MB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003921/0.3924, allocations: 1.063 MB / 495.6 MB, free: 156 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/0.3938, allocations: 145.7 kB / 495.8 MB, free: 20 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/0.3982, allocations: 1.945 MB / 497.7 MB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.3986, allocations: 325.8 kB / 498.1 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001139/0.3997, allocations: 215.8 kB / 498.3 MB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/0.4003, allocations: 68.5 kB / 498.3 MB, free: 13.13 MB / 398.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4003, allocations: 4 kB / 498.3 MB, free: 13.12 MB / 398.1 MB Notification: Performance of Templates: time 0.02851/0.4289, allocations: 17.96 MB / 0.5042 GB, free: 11.32 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 480] 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: 6.088073767721653]