Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001116/0.001116, allocations: 95.2 kB / 20.43 MB, free: 4.141 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.001042/0.001042, allocations: 165 kB / 23.79 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8511/0.8511, allocations: 158.6 MB / 185.7 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1304/0.1304, allocations: 32.36 MB / 270.4 MB, free: 14.71 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 347.7 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.664e-05/2.868e-05, allocations: 2.312 kB / 347.7 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00305/0.003079, allocations: 2.348 MB / 350 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.004557, allocations: 0.9639 MB / 351 MB, free: 6.129 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.004733, allocations: 15.88 kB / 351 MB, free: 6.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.005063, allocations: 123.2 kB / 351.1 MB, free: 5.992 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.005278, allocations: 111.2 kB / 351.2 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005014/0.005779, allocations: 291.4 kB / 351.5 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005151/0.006294, allocations: 0.7328 MB / 352.2 MB, free: 4.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.006429, allocations: 53.06 kB / 352.3 MB, free: 4.809 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003406/0.00677, allocations: 399.2 kB / 352.7 MB, free: 4.418 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.007056, allocations: 291.2 kB / 353 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-05/0.007143, allocations: 64 kB / 353 MB, free: 4.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.384e-05/0.007217, allocations: 64 kB / 353.1 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.007399, allocations: 207.3 kB / 353.3 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.007535, allocations: 175.6 kB / 353.5 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.007965, allocations: 462.5 kB / 353.9 MB, free: 3.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.007969, allocations: 4 kB / 353.9 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.00797, allocations: 0 / 353.9 MB, free: 3.176 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.007978, allocations: 4 kB / 353.9 MB, free: 3.172 MB / 282.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.001322/0.009301, allocations: 0.9205 MB / 354.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.009336, allocations: 12.03 kB / 354.8 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.009476, allocations: 108.6 kB / 354.9 MB, free: 2.098 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.009851, allocations: 311.2 kB / 355.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002885/0.01014, allocations: 0.663 MB / 355.9 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.993e-05/0.01023, allocations: 44.3 kB / 356 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009903/0.01122, allocations: 0.5877 MB / 356.5 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.01125, allocations: 192 / 356.5 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.673e-05/0.0113, allocations: 20.12 kB / 356.6 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.01132, allocations: 12 kB / 356.6 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.0124, allocations: 469.5 kB / 357 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.01461, allocations: 2.172 MB / 359.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.01571, allocations: 423.5 kB / 359.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003675/0.01608, allocations: 177.3 kB / 359.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.137e-05/0.01614, allocations: 12 kB / 359.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.01617, allocations: 53.33 kB / 359.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.124e-06/0.01617, allocations: 0 / 359.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=122): time 0.02489/0.04107, allocations: 7.723 MB / 367.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.04112, allocations: 90.11 kB / 367.7 MB, free: 4.922 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.04155, allocations: 410.5 kB / 368.1 MB, free: 4.504 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.04168, allocations: 45.7 kB / 368.1 MB, free: 4.453 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.04184, allocations: 264.3 kB / 368.4 MB, free: 4.188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/0.04222, allocations: 424.3 kB / 368.8 MB, free: 3.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005647/0.04279, allocations: 204.5 kB / 369 MB, free: 3.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.04299, allocations: 0.5508 MB / 369.5 MB, free: 3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.04438, allocations: 0.6507 MB / 370.2 MB, free: 2.344 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.04586, allocations: 0.8412 MB / 371 MB, free: 1.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002355/0.04822, allocations: 1.3 MB / 372.3 MB, free: 84 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.04822, allocations: 4 kB / 372.3 MB, free: 80 kB / 298.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003172/0.0514, allocations: 1.614 MB / 373.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.05142, allocations: 8 kB / 374 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.05143, allocations: 4 kB / 374 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.05145, allocations: 8 kB / 374 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001831/0.05328, allocations: 363.7 kB / 374.3 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.731e-05/0.0533, allocations: 11.98 kB / 374.3 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.05448, allocations: 155.8 kB / 374.5 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/0.05463, allocations: 47.98 kB / 374.5 MB, free: 13.87 MB / 314.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.000369/0.055, allocations: 224.3 kB / 374.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/0.05532, allocations: 107.6 kB / 374.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001472/0.05547, allocations: 104.7 kB / 375 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.05548, allocations: 12 kB / 375 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.05548, allocations: 0 / 375 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.0555, allocations: 7.969 kB / 375 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005078/0.06057, allocations: 3.237 MB / 378.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.06059, allocations: 24 kB / 378.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006262/0.06121, allocations: 311.4 kB / 378.5 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.702e-05/0.06123, allocations: 28 kB / 378.6 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.595e-05/0.06129, allocations: 44.28 kB / 378.6 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.809e-05/0.0613, allocations: 39.86 kB / 378.7 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/0.06132, allocations: 31.88 kB / 378.7 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.06307, allocations: 2.11 MB / 380.8 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.06327, allocations: 163.4 kB / 381 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.974e-05/0.06335, allocations: 55.97 kB / 381 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004923/0.06385, allocations: 135.9 kB / 381.1 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.06411, allocations: 211.2 kB / 381.3 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.163e-05/0.06416, allocations: 56 kB / 381.4 MB, free: 6.152 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001512/0.06431, allocations: 255.1 kB / 381.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.06431, allocations: 0 / 381.7 MB, free: 5.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005673/0.06488, allocations: 239.9 kB / 381.9 MB, free: 5.672 MB / 314.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.0001635/0.06504, allocations: 167 kB / 382.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.06653, allocations: 1.17 MB / 383.2 MB, free: 4.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.06654, allocations: 7.938 kB / 383.2 MB, free: 4.312 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004636/0.067, allocations: 362.8 kB / 383.6 MB, free: 3.965 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007818/0.06779, allocations: 218.6 kB / 383.8 MB, free: 3.758 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.06975, allocations: 1.993 MB / 385.8 MB, free: 1.328 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.06989, allocations: 185 kB / 386 MB, free: 1.125 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005438/0.07044, allocations: 185.9 kB / 386.2 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.07083, allocations: 76.48 kB / 386.2 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of SimCode: time 8.22e-07/0.07083, allocations: 0 / 386.2 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of Templates: time 0.01917/0.09, allocations: 19.3 MB / 405.5 MB, free: 13.55 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.626130308955908]