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.001114/0.001114, allocations: 83.75 kB / 21.19 MB, free: 3.375 MB / 18.57 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.001232/0.001232, allocations: 161 kB / 24.56 MB, free: 8 kB / 18.57 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 0.9805/0.9805, allocations: 177.1 MB / 205 MB, free: 5.289 MB / 186.7 MB " [Timeout remaining time 179] 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.2451/0.2451, allocations: 34.26 MB / 295.7 MB, free: 0.7266 MB / 266.7 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: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.1.0_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_4.1.0_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 378 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.701e-05, allocations: 5.688 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002758/0.002785, allocations: 2.348 MB / 380.4 MB, free: 324 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.004091, allocations: 0.9552 MB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.004237, allocations: 11.88 kB / 381.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003223/0.004559, allocations: 127.2 kB / 381.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.004741, allocations: 91.34 kB / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004709/0.005212, allocations: 307.3 kB / 381.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.005737, allocations: 0.725 MB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.005872, allocations: 41.27 kB / 382.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.006209, allocations: 395.2 kB / 383 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002782/0.006488, allocations: 291.2 kB / 383.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.266e-05/0.00656, allocations: 64 kB / 383.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.19e-05/0.006622, allocations: 63.94 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001385/0.006761, allocations: 203.4 kB / 383.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.006881, allocations: 175.6 kB / 383.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.007265, allocations: 462.4 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.007268, allocations: 0 / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.007269, allocations: 0 / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.007276, allocations: 0 / 384.2 MB, free: 12.44 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.001425/0.008701, allocations: 0.9206 MB / 385.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.008738, allocations: 8.031 kB / 385.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.008866, allocations: 112.6 kB / 385.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.009229, allocations: 319.1 kB / 385.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/0.009555, allocations: 0.6552 MB / 386.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.792e-05/0.009623, allocations: 48.36 kB / 386.3 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007774/0.0104, allocations: 0.5876 MB / 386.9 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.01042, allocations: 4.125 kB / 386.9 MB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.01045, allocations: 20.12 kB / 386.9 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.01047, allocations: 12 kB / 386.9 MB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007559/0.01122, allocations: 461.7 kB / 387.4 MB, free: 9.059 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.01293, allocations: 2.168 MB / 389.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008256/0.01375, allocations: 427.2 kB / 389.9 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.01402, allocations: 180.4 kB / 390.1 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.689e-05/0.01409, allocations: 12.56 kB / 390.1 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.01412, allocations: 42.52 kB / 390.2 MB, free: 6.121 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 5.049e-06/0.01412, allocations: 4 kB / 390.2 MB, free: 6.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01781/0.03193, allocations: 7.721 MB / 397.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.03199, allocations: 90.11 kB / 398 MB, free: 14.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.03233, allocations: 414.5 kB / 398.4 MB, free: 13.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.03244, allocations: 45.7 kB / 398.4 MB, free: 13.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.03258, allocations: 268.3 kB / 398.7 MB, free: 13.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.03286, allocations: 420.4 kB / 399.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006689/0.03353, allocations: 204.5 kB / 399.3 MB, free: 12.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.03371, allocations: 0.5508 MB / 399.9 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009433/0.03465, allocations: 0.6507 MB / 400.5 MB, free: 11.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.03569, allocations: 0.845 MB / 401.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.03731, allocations: 1.292 MB / 402.7 MB, free: 9.363 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.03731, allocations: 0 / 402.7 MB, free: 9.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002347/0.03966, allocations: 1.621 MB / 404.3 MB, free: 7.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.03968, allocations: 4 kB / 404.3 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.0397, allocations: 7.938 kB / 404.3 MB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/0.03972, allocations: 8 kB / 404.3 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.04105, allocations: 355.8 kB / 404.6 MB, free: 7.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.04107, allocations: 11.98 kB / 404.7 MB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008353/0.0419, allocations: 163.8 kB / 404.8 MB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.042, allocations: 51.91 kB / 404.9 MB, free: 7.145 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.0003221/0.04232, allocations: 232.2 kB / 405.1 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.04255, allocations: 103.6 kB / 405.2 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.04267, allocations: 108.7 kB / 405.3 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.04267, allocations: 12 kB / 405.3 MB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.04269, allocations: 4 kB / 405.3 MB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.0427, allocations: 7.969 kB / 405.3 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004655/0.04736, allocations: 3.234 MB / 408.6 MB, free: 3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.04737, allocations: 20 kB / 408.6 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000667/0.04804, allocations: 303.4 kB / 408.9 MB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.669e-05/0.04805, allocations: 31.94 kB / 408.9 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/0.04811, allocations: 48 kB / 408.9 MB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.112e-05/0.04814, allocations: 39.86 kB / 409 MB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.361e-05/0.04815, allocations: 36 kB / 409 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.05004, allocations: 2.095 MB / 411.1 MB, free: 36 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/0.0503, allocations: 171.5 kB / 411.3 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.933e-05/0.05038, allocations: 51.98 kB / 411.3 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005515/0.05093, allocations: 139.9 kB / 411.5 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/0.0512, allocations: 207.2 kB / 411.7 MB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.927e-05/0.05126, allocations: 56 kB / 411.7 MB, free: 15.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001701/0.05143, allocations: 263.1 kB / 412 MB, free: 15.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05143, allocations: 0 / 412 MB, free: 15.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006953/0.05213, allocations: 231.9 kB / 412.2 MB, free: 14.93 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.0001768/0.05231, allocations: 174.7 kB / 412.4 MB, free: 14.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.05407, allocations: 1.159 MB / 413.5 MB, free: 13.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.05407, allocations: 7.938 kB / 413.5 MB, free: 13.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004857/0.05456, allocations: 365.7 kB / 413.9 MB, free: 13.24 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008336/0.05539, allocations: 200.3 kB / 414.1 MB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/0.05756, allocations: 2.008 MB / 416.1 MB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.05772, allocations: 192.9 kB / 416.3 MB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005862/0.0583, allocations: 193.9 kB / 416.5 MB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000422/0.05873, allocations: 72.48 kB / 416.6 MB, free: 10.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.193e-06/0.05873, allocations: 0 / 416.6 MB, free: 10.13 MB / 394.7 MB Notification: Performance of Templates: time 0.01895/0.07768, allocations: 18.15 MB / 434.7 MB, free: 8.117 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.8325339313596487]