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.001032/0.001032, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001146/0.001146, allocations: 160.5 kB / 24.55 MB, free: 20 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.01/1.01, allocations: 177 MB / 204.8 MB, free: 5.582 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.2995/0.2995, allocations: 34.87 MB / 296.3 MB, free: 0.5547 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.804e-06/1.804e-06, allocations: 0 / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.846e-05/3.027e-05, allocations: 2.312 kB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002934/0.002964, allocations: 2.346 MB / 381.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.004329, allocations: 0.9629 MB / 382.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.004491, allocations: 7.938 kB / 382.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000344/0.004835, allocations: 123.2 kB / 382.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.005029, allocations: 103.3 kB / 382.3 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.005597, allocations: 299.4 kB / 382.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005709/0.006168, allocations: 0.7288 MB / 383.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.006313, allocations: 45.27 kB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003394/0.006652, allocations: 391.2 kB / 383.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.006929, allocations: 291.2 kB / 384 MB, free: 12.82 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.641e-05/0.007005, allocations: 64 kB / 384.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.515e-05/0.00707, allocations: 64 kB / 384.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.007212, allocations: 199.4 kB / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.007339, allocations: 179.5 kB / 384.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.007729, allocations: 466.4 kB / 385 MB, free: 11.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.007731, allocations: 4 kB / 385 MB, free: 11.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.007732, allocations: 0 / 385 MB, free: 11.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.007738, allocations: 0 / 385 MB, free: 11.86 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.001232/0.00897, allocations: 0.909 MB / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.009008, allocations: 8.031 kB / 385.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.009139, allocations: 116.6 kB / 386 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.009502, allocations: 311.1 kB / 386.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003507/0.009853, allocations: 0.6669 MB / 387 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.00992, allocations: 44.38 kB / 387 MB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007942/0.01071, allocations: 0.5798 MB / 387.6 MB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.01073, allocations: 192 / 387.6 MB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.01077, allocations: 20.12 kB / 387.6 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.01078, allocations: 12 kB / 387.6 MB, free: 8.957 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007371/0.01152, allocations: 477.7 kB / 388.1 MB, free: 8.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.01321, allocations: 2.157 MB / 390.3 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008337/0.01404, allocations: 423.5 kB / 390.7 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.01431, allocations: 184.4 kB / 390.8 MB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.01437, allocations: 16.5 kB / 390.9 MB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.0144, allocations: 50.45 kB / 390.9 MB, free: 5.551 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.084e-06/0.0144, allocations: 0 / 390.9 MB, free: 5.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.0176/0.03199, allocations: 7.709 MB / 398.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.03206, allocations: 94.05 kB / 398.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.03244, allocations: 414.5 kB / 399.1 MB, free: 13.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.03256, allocations: 45.7 kB / 399.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005388/0.0331, allocations: 268.3 kB / 399.4 MB, free: 12.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/0.03344, allocations: 420.4 kB / 399.8 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003771/0.03381, allocations: 208.5 kB / 400 MB, free: 12.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.034, allocations: 0.5469 MB / 400.6 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009084/0.03491, allocations: 0.6546 MB / 401.2 MB, free: 11.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.03594, allocations: 0.8451 MB / 402.1 MB, free: 10.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.03756, allocations: 1.3 MB / 403.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.03756, allocations: 0 / 403.4 MB, free: 8.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002255/0.03982, allocations: 1.61 MB / 405 MB, free: 7.176 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.03985, allocations: 4 kB / 405 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.03986, allocations: 4.312 kB / 405 MB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/0.03989, allocations: 12 kB / 405 MB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.04109, allocations: 355.5 kB / 405.4 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.135e-05/0.04111, allocations: 11.94 kB / 405.4 MB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009644/0.04208, allocations: 171.8 kB / 405.5 MB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.04219, allocations: 36 kB / 405.6 MB, free: 6.594 MB / 378.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.0003207/0.04251, allocations: 236.2 kB / 405.8 MB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.04272, allocations: 103.6 kB / 405.9 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.04283, allocations: 108.7 kB / 406 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.04284, allocations: 12 kB / 406 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.04285, allocations: 4 kB / 406 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-06/0.04286, allocations: 3.984 kB / 406 MB, free: 6.117 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/0.04755, allocations: 3.236 MB / 409.3 MB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/0.04756, allocations: 20 kB / 409.3 MB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006479/0.04821, allocations: 308.1 kB / 409.6 MB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.822e-05/0.04823, allocations: 28 kB / 409.6 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.175e-05/0.04829, allocations: 48 kB / 409.7 MB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.357e-05/0.04831, allocations: 43.8 kB / 409.7 MB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.491e-05/0.04833, allocations: 31.88 kB / 409.7 MB, free: 1.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.05026, allocations: 2.091 MB / 411.8 MB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.05049, allocations: 183.4 kB / 412 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.05057, allocations: 43.98 kB / 412 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/0.05109, allocations: 135.9 kB / 412.2 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.05137, allocations: 207.2 kB / 412.4 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-05/0.05142, allocations: 63.98 kB / 412.4 MB, free: 14.87 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001784/0.0516, allocations: 255.1 kB / 412.7 MB, free: 14.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.0516, allocations: 4 kB / 412.7 MB, free: 14.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009171/0.05252, allocations: 231.9 kB / 412.9 MB, free: 14.38 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.0001989/0.05272, allocations: 180.8 kB / 413.1 MB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.05423, allocations: 1.158 MB / 414.3 MB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.05424, allocations: 4 kB / 414.3 MB, free: 13.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004589/0.0547, allocations: 366.5 kB / 414.6 MB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007706/0.05547, allocations: 205.3 kB / 414.8 MB, free: 12.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.0576, allocations: 2.009 MB / 416.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.05776, allocations: 184.9 kB / 417 MB, free: 9.848 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005597/0.05832, allocations: 193.9 kB / 417.2 MB, free: 9.656 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.05873, allocations: 72.48 kB / 417.3 MB, free: 9.586 MB / 394.7 MB Notification: Performance of SimCode: time 9.92e-07/0.05873, allocations: 0 / 417.3 MB, free: 9.586 MB / 394.7 MB Notification: Performance of Templates: time 0.02044/0.07917, allocations: 19.19 MB / 436.5 MB, free: 6.504 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9158327784389257]