Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00134/0.00134, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001432/0.001432, allocations: 161 kB / 24.55 MB, free: 24 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.9501/0.9501, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2776/0.2776, allocations: 32.81 MB / 294.3 MB, free: 1.293 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.KinematicPTP") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.859e-05/3.038e-05, allocations: 2.312 kB / 376 MB, free: 4.695 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003385/0.003416, allocations: 2.349 MB / 378.3 MB, free: 2.324 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.004957, allocations: 0.9513 MB / 379.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.005154, allocations: 11.88 kB / 379.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.005527, allocations: 127.2 kB / 379.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002225/0.005749, allocations: 95.33 kB / 379.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006189/0.006368, allocations: 299.4 kB / 379.8 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006574/0.007026, allocations: 0.7328 MB / 380.5 MB, free: 112 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.007174, allocations: 37.27 kB / 380.6 MB, free: 72 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003698/0.007544, allocations: 395.2 kB / 381 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.007845, allocations: 299.2 kB / 381.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.856e-05/0.007924, allocations: 60 kB / 381.3 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.353e-05/0.007987, allocations: 64 kB / 381.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.008139, allocations: 203.4 kB / 381.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.008265, allocations: 175.5 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.008664, allocations: 462.5 kB / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.008667, allocations: 0 / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.008668, allocations: 0 / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.008675, allocations: 0 / 382.2 MB, free: 14.45 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.001333/0.01001, allocations: 0.9167 MB / 383.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.01005, allocations: 8.031 kB / 383.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.0102, allocations: 116.6 kB / 383.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.01061, allocations: 315.2 kB / 383.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003501/0.01096, allocations: 0.663 MB / 384.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.076e-05/0.01103, allocations: 48.31 kB / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008552/0.01188, allocations: 0.5798 MB / 384.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.0119, allocations: 192 / 384.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.776e-05/0.01195, allocations: 20.12 kB / 384.9 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.01197, allocations: 12 kB / 384.9 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009456/0.01291, allocations: 469.7 kB / 385.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.01475, allocations: 2.168 MB / 387.5 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008432/0.01559, allocations: 419.5 kB / 387.9 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.01587, allocations: 184.4 kB / 388.1 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.986e-05/0.01594, allocations: 16.55 kB / 388.1 MB, free: 8.176 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.01597, allocations: 42.52 kB / 388.1 MB, free: 8.125 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.074e-06/0.01597, allocations: 0 / 388.1 MB, free: 8.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01789/0.03386, allocations: 7.706 MB / 395.9 MB, free: 332 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.03391, allocations: 94.11 kB / 395.9 MB, free: 216 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003425/0.03426, allocations: 410.5 kB / 396.3 MB, free: 15.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.03436, allocations: 45.7 kB / 396.4 MB, free: 15.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.03448, allocations: 276.3 kB / 396.7 MB, free: 15.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000271/0.03475, allocations: 416.4 kB / 397.1 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003962/0.03515, allocations: 208.5 kB / 397.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.03531, allocations: 0.5469 MB / 397.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009493/0.03626, allocations: 0.6584 MB / 398.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.03727, allocations: 0.8451 MB / 399.3 MB, free: 12.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.03914, allocations: 1.288 MB / 400.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.03915, allocations: 4 kB / 400.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002319/0.04147, allocations: 1.614 MB / 402.2 MB, free: 9.758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.04149, allocations: 14.33 kB / 402.2 MB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.0415, allocations: 0 / 402.2 MB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.04152, allocations: 12 kB / 402.3 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.04281, allocations: 351.8 kB / 402.6 MB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.04283, allocations: 16 kB / 402.6 MB, free: 9.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008335/0.04366, allocations: 159.8 kB / 402.8 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.996e-05/0.04376, allocations: 39.98 kB / 402.8 MB, free: 9.18 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.0003374/0.0441, allocations: 232.2 kB / 403 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.04433, allocations: 103.6 kB / 403.1 MB, free: 8.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.04445, allocations: 116.7 kB / 403.3 MB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.04446, allocations: 12 kB / 403.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.04447, allocations: 0 / 403.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.04448, allocations: 11.91 kB / 403.3 MB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004692/0.04917, allocations: 3.23 MB / 406.5 MB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/0.04918, allocations: 28.05 kB / 406.5 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000668/0.04985, allocations: 307.4 kB / 406.8 MB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.995e-05/0.04987, allocations: 28 kB / 406.9 MB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.207e-05/0.04993, allocations: 48 kB / 406.9 MB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.46e-05/0.04996, allocations: 43.84 kB / 406.9 MB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-05/0.04998, allocations: 31.88 kB / 407 MB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.05202, allocations: 2.102 MB / 409.1 MB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002645/0.05229, allocations: 171.4 kB / 409.3 MB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.78e-05/0.05237, allocations: 51.97 kB / 409.3 MB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.05293, allocations: 143.8 kB / 409.4 MB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.0532, allocations: 203.2 kB / 409.6 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.837e-05/0.05326, allocations: 60 kB / 409.7 MB, free: 1.434 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001778/0.05344, allocations: 259.1 kB / 410 MB, free: 1.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05344, allocations: 0 / 410 MB, free: 1.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000709/0.05415, allocations: 235.9 kB / 410.2 MB, free: 0.9492 MB / 378.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.0001666/0.05431, allocations: 167.3 kB / 410.3 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.05595, allocations: 1.165 MB / 411.5 MB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.05596, allocations: 8.125 kB / 411.5 MB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004917/0.05645, allocations: 366.9 kB / 411.9 MB, free: 15.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008073/0.05726, allocations: 205 kB / 412.1 MB, free: 15.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.05967, allocations: 2.005 MB / 414.1 MB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.05983, allocations: 184.9 kB / 414.3 MB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006014/0.06044, allocations: 193.9 kB / 414.5 MB, free: 12.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004226/0.06086, allocations: 72.48 kB / 414.5 MB, free: 12.15 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/0.06086, allocations: 0 / 414.5 MB, free: 12.15 MB / 394.7 MB Notification: Performance of Templates: time 0.01836/0.07922, allocations: 18.16 MB / 432.7 MB, free: 10.13 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 4.0266273049637675]