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.001577/0.001577, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001181/0.001181, allocations: 161.3 kB / 24.99 MB, free: 9.273 MB / 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.9385/0.9385, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.2486/0.2486, allocations: 32.81 MB / 294.6 MB, free: 1.277 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.342e-06/1.342e-06, allocations: 0 / 376 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.592e-05, allocations: 5.688 kB / 376 MB, free: 5.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002594/0.00262, allocations: 2.348 MB / 378.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.005211, allocations: 0.9474 MB / 379.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003275/0.005539, allocations: 15.88 kB / 379.3 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000466/0.006005, allocations: 119.2 kB / 379.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000395/0.0064, allocations: 107.3 kB / 379.5 MB, free: 1.445 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008458/0.007246, allocations: 291.4 kB / 379.8 MB, free: 1.16 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009247/0.00817, allocations: 0.7289 MB / 380.5 MB, free: 440 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.00837, allocations: 41.27 kB / 380.6 MB, free: 396 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006574/0.009027, allocations: 399.2 kB / 381 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004673/0.009495, allocations: 291.1 kB / 381.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.009637, allocations: 64 kB / 381.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.338e-05/0.00973, allocations: 60 kB / 381.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.00995, allocations: 207.3 kB / 381.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.01015, allocations: 171.6 kB / 381.7 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006017/0.01075, allocations: 462.5 kB / 382.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.01076, allocations: 4 kB / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.01076, allocations: 0 / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.01077, allocations: 4 kB / 382.2 MB, free: 14.76 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.001824/0.0126, allocations: 0.9089 MB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.01264, allocations: 16.02 kB / 383.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.01285, allocations: 112.6 kB / 383.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005348/0.01338, allocations: 315 kB / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004851/0.01387, allocations: 0.6591 MB / 384.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.299e-05/0.01396, allocations: 44.38 kB / 384.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.01517, allocations: 0.5798 MB / 384.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.01519, allocations: 8.172 kB / 384.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.01525, allocations: 20.12 kB / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.01527, allocations: 8 kB / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.01649, allocations: 473.7 kB / 385.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.01896, allocations: 2.161 MB / 387.5 MB, free: 9.137 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008316/0.01979, allocations: 423.5 kB / 387.9 MB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002627/0.02006, allocations: 188.4 kB / 388.1 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.02011, allocations: 16.56 kB / 388.1 MB, free: 8.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.02013, allocations: 42.52 kB / 388.1 MB, free: 8.441 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 1.873e-06/0.02013, allocations: 0 / 388.1 MB, free: 8.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01679/0.03693, allocations: 7.706 MB / 395.8 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.03698, allocations: 94.05 kB / 395.9 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.03728, allocations: 410.5 kB / 396.3 MB, free: 116 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.03738, allocations: 45.7 kB / 396.4 MB, free: 64 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.03751, allocations: 272.3 kB / 396.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.03779, allocations: 420.4 kB / 397.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003294/0.03812, allocations: 204.6 kB / 397.3 MB, free: 15.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.03826, allocations: 0.5508 MB / 397.8 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008799/0.03914, allocations: 0.6545 MB / 398.5 MB, free: 13.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009682/0.04011, allocations: 0.8451 MB / 399.3 MB, free: 13.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.04167, allocations: 1.296 MB / 400.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.04167, allocations: 0 / 400.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00216/0.04383, allocations: 1.61 MB / 402.2 MB, free: 10.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.04385, allocations: 8 kB / 402.2 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.04386, allocations: 4 kB / 402.2 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.04388, allocations: 8.312 kB / 402.2 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.04507, allocations: 359.5 kB / 402.6 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.04509, allocations: 8 kB / 402.6 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007755/0.04586, allocations: 171.8 kB / 402.8 MB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.04595, allocations: 36 kB / 402.8 MB, free: 9.496 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.0002971/0.04624, allocations: 232.2 kB / 403 MB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.04646, allocations: 103.6 kB / 403.1 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.04658, allocations: 108.7 kB / 403.2 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.04658, allocations: 19.88 kB / 403.2 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.04659, allocations: 4 kB / 403.3 MB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.0466, allocations: 3.984 kB / 403.3 MB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004386/0.05098, allocations: 3.238 MB / 406.5 MB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.051, allocations: 20 kB / 406.5 MB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006501/0.05165, allocations: 304 kB / 406.8 MB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.709e-05/0.05167, allocations: 32 kB / 406.8 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.09e-05/0.05173, allocations: 51.98 kB / 406.9 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2e-05/0.05175, allocations: 39.86 kB / 406.9 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.548e-05/0.05176, allocations: 35.81 kB / 407 MB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.05371, allocations: 2.095 MB / 409.1 MB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000249/0.05396, allocations: 179.3 kB / 409.2 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.44e-05/0.05404, allocations: 51.98 kB / 409.3 MB, free: 2.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/0.0546, allocations: 135.9 kB / 409.4 MB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002878/0.05488, allocations: 203.2 kB / 409.6 MB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.763e-05/0.05494, allocations: 59.98 kB / 409.7 MB, free: 1.758 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.05512, allocations: 251.1 kB / 409.9 MB, free: 1.512 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05512, allocations: 4 kB / 409.9 MB, free: 1.508 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007306/0.05585, allocations: 239.9 kB / 410.2 MB, free: 1.273 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.0002118/0.05606, allocations: 170.9 kB / 410.3 MB, free: 1.098 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.05772, allocations: 1.17 MB / 411.5 MB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/0.05773, allocations: 4 kB / 411.5 MB, free: 15.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004889/0.05822, allocations: 366.3 kB / 411.9 MB, free: 15.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008035/0.05902, allocations: 205.3 kB / 412.1 MB, free: 15.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.06136, allocations: 2.004 MB / 414.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/0.06154, allocations: 184.9 kB / 414.2 MB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006426/0.06218, allocations: 197.9 kB / 414.4 MB, free: 12.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.06257, allocations: 76.48 kB / 414.5 MB, free: 12.46 MB / 394.7 MB Notification: Performance of SimCode: time 2.063e-06/0.06257, allocations: 3.938 kB / 414.5 MB, free: 12.45 MB / 394.7 MB Notification: Performance of Templates: time 0.01972/0.08229, allocations: 18.15 MB / 432.7 MB, free: 10.44 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: 3.7644612488802522]