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.001509/0.001509, allocations: 112.5 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001653/0.001653, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 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 1.382/1.382, allocations: 230.6 MB / 258.3 MB, free: 8.23 MB / 206.1 MB " [Timeout remaining time 178] 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.2101/0.2101, allocations: 46.94 MB / 361.6 MB, free: 4.309 MB / 286.1 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 0.001925/0.001925, allocations: 71.89 kB / 0.4974 GB, free: 7.418 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2664, allocations: 66.03 MB / 0.5619 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003552/0.27, allocations: 2.431 MB / 0.5642 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.2716, allocations: 0.9912 MB / 0.5652 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2717, allocations: 15.81 kB / 0.5652 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003433/0.272, allocations: 115.2 kB / 0.5653 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002121/0.2723, allocations: 99.38 kB / 0.5654 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005779/0.2728, allocations: 299.5 kB / 0.5657 GB, free: 488 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007394/0.2736, allocations: 0.7175 MB / 0.5664 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.2737, allocations: 52.91 kB / 0.5665 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.2741, allocations: 311 kB / 0.5668 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004223/0.2745, allocations: 346.6 kB / 0.5671 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.592e-05/0.2746, allocations: 60 kB / 0.5672 GB, free: 15 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.368e-05/0.2747, allocations: 60 kB / 0.5672 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.2748, allocations: 191.5 kB / 0.5674 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.2751, allocations: 238.7 kB / 0.5676 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005568/0.2756, allocations: 0.559 MB / 0.5682 GB, free: 13.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2756, allocations: 0 / 0.5682 GB, free: 13.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2756, allocations: 0 / 0.5682 GB, free: 13.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.2756, allocations: 0 / 0.5682 GB, free: 13.96 MB / 414.1 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.002156/0.2778, allocations: 0.8752 MB / 0.569 GB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.2778, allocations: 15.97 kB / 0.569 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.2779, allocations: 64.61 kB / 0.5691 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.2785, allocations: 309.1 kB / 0.5694 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000568/0.279, allocations: 0.6708 MB / 0.57 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-05/0.2791, allocations: 44.36 kB / 0.5701 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.2811, allocations: 0.8125 MB / 0.5709 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.2811, allocations: 4 kB / 0.5709 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.355e-05/0.2812, allocations: 24 kB / 0.5709 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2812, allocations: 8 kB / 0.5709 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/0.2846, allocations: 1.2 MB / 0.5721 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002828/0.2874, allocations: 1.995 MB / 0.574 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.2903, allocations: 0.7806 MB / 0.5748 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.2918, allocations: 453.3 kB / 0.5752 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-05/0.2918, allocations: 8 kB / 0.5752 GB, free: 6.379 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.2919, allocations: 46.5 kB / 0.5753 GB, free: 6.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 1.803e-06/0.2919, allocations: 0 / 0.5753 GB, free: 6.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.08351/0.3754, allocations: 15.48 MB / 0.5904 GB, free: 6.754 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.3754, allocations: 98.09 kB / 0.5905 GB, free: 6.641 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004857/0.3759, allocations: 385.5 kB / 0.5909 GB, free: 6.254 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001528/0.3761, allocations: 45.7 kB / 0.5909 GB, free: 6.203 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.3763, allocations: 233.5 kB / 0.5911 GB, free: 5.969 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004129/0.3767, allocations: 412.5 kB / 0.5915 GB, free: 5.562 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005273/0.3772, allocations: 206.8 kB / 0.5917 GB, free: 5.352 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.3774, allocations: 366.8 kB / 0.5921 GB, free: 4.984 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003601/0.381, allocations: 1.342 MB / 0.5934 GB, free: 3.645 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00374/0.3847, allocations: 1.497 MB / 0.5948 GB, free: 2.098 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006656/0.3914, allocations: 2.436 MB / 0.5972 GB, free: 15.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3914, allocations: 0 / 0.5972 GB, free: 15.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007643/0.399, allocations: 2.831 MB / 0.6 GB, free: 12.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.399, allocations: 8 kB / 0.6 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3991, allocations: 4 kB / 0.6 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/0.3991, allocations: 11.94 kB / 0.6 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.4018, allocations: 403.7 kB / 0.6004 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.31e-05/0.4019, allocations: 15.88 kB / 0.6004 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.4038, allocations: 223.7 kB / 0.6006 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.404, allocations: 36 kB / 0.6007 GB, free: 12.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,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 (148): * Single equations (assignments): 148 * 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.000499/0.4045, allocations: 237.5 kB / 0.6009 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.4047, allocations: 59.62 kB / 0.6009 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.4049, allocations: 116.6 kB / 0.601 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.405, allocations: 12 kB / 0.6011 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.405, allocations: 3.938 kB / 0.6011 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.405, allocations: 7.984 kB / 0.6011 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.4166, allocations: 5.193 MB / 0.6061 GB, free: 6.125 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.539e-05/0.4167, allocations: 24 kB / 0.6062 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.4181, allocations: 356.3 kB / 0.6065 GB, free: 5.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.65e-05/0.4181, allocations: 24 kB / 0.6065 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.311e-05/0.4182, allocations: 48 kB / 0.6066 GB, free: 5.684 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.383e-05/0.4183, allocations: 43.8 kB / 0.6066 GB, free: 5.641 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.406e-05/0.4183, allocations: 39.81 kB / 0.6067 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007145/0.4254, allocations: 3.095 MB / 0.6097 GB, free: 2.199 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/0.4258, allocations: 171.5 kB / 0.6098 GB, free: 2.031 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.426, allocations: 47.98 kB / 0.6099 GB, free: 1.984 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.4272, allocations: 191.8 kB / 0.6101 GB, free: 1.797 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004155/0.4276, allocations: 223.2 kB / 0.6103 GB, free: 1.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.983e-05/0.4277, allocations: 60 kB / 0.6103 GB, free: 1.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002982/0.428, allocations: 263.1 kB / 0.6106 GB, free: 1.262 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.428, allocations: 0 / 0.6106 GB, free: 1.262 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009556/0.429, allocations: 228 kB / 0.6108 GB, free: 1.039 MB / 446.1 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: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],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 (120): * Single equations (assignments): 120 * 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.0002193/0.4292, allocations: 162.8 kB / 0.611 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006009/0.4352, allocations: 2.163 MB / 0.6131 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.4352, allocations: 4 kB / 0.6131 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003235/0.4384, allocations: 1.047 MB / 0.6141 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.4397, allocations: 151.7 kB / 0.6142 GB, free: 13.51 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004/0.4437, allocations: 2.02 MB / 0.6162 GB, free: 11.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.4443, allocations: 0.9282 MB / 0.6171 GB, free: 10.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/0.445, allocations: 79.42 kB / 0.6172 GB, free: 10.14 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.445, allocations: 0 / 0.6172 GB, free: 10.14 MB / 462.1 MB Notification: Performance of Templates: time 0.02188/0.4669, allocations: 14.33 MB / 0.6312 GB, free: 11.84 MB / 478.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.198819109937176]