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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001638, allocations: 108.2 kB / 18.39 MB, free: 4.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 182.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 243 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1989/0.1989, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.27 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1264, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003781/0.1303, allocations: 2.399 MB / 473.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.132, allocations: 0.9475 MB / 474 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.1322, allocations: 11.94 kB / 474.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003911/0.1326, allocations: 111.2 kB / 474.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002181/0.1328, allocations: 99.31 kB / 474.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.1335, allocations: 291.5 kB / 474.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006705/0.1341, allocations: 0.7212 MB / 475.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.1343, allocations: 61.05 kB / 475.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003/0.1346, allocations: 303 kB / 475.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.135, allocations: 334.7 kB / 475.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.614e-05/0.1351, allocations: 60 kB / 476 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.926e-05/0.1352, allocations: 60 kB / 476.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002081/0.1354, allocations: 183.5 kB / 476.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.1357, allocations: 250.7 kB / 476.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00065/0.1363, allocations: 0.5528 MB / 477 MB, free: 7.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1364, allocations: 3.938 kB / 477 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1364, allocations: 0 / 477 MB, free: 7.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.1364, allocations: 4 kB / 477 MB, free: 7.262 MB / 350.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.002385/0.1388, allocations: 0.9315 MB / 478 MB, free: 6.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1388, allocations: 8.031 kB / 478 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.139, allocations: 68.28 kB / 478.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006787/0.1397, allocations: 387.1 kB / 478.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003365/0.14, allocations: 259.7 kB / 478.7 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.211e-05/0.1401, allocations: 44.36 kB / 478.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.1419, allocations: 0.8126 MB / 479.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.142, allocations: 3.906 kB / 479.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.348e-05/0.142, allocations: 20 kB / 479.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1421, allocations: 8 kB / 479.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003157/0.1452, allocations: 1.208 MB / 480.8 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002873/0.1481, allocations: 2.038 MB / 482.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.1508, allocations: 0.8244 MB / 483.6 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.1522, allocations: 0.4896 MB / 484.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.427e-05/0.1523, allocations: 9.062 kB / 484.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.1523, allocations: 46.44 kB / 484.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 3.086e-06/0.1523, allocations: 0 / 484.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08291/0.2352, allocations: 15.74 MB / 499.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.2353, allocations: 90.23 kB / 0.4883 GB, free: 15.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004579/0.2358, allocations: 389.4 kB / 0.4887 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001736/0.236, allocations: 45.64 kB / 0.4887 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.2362, allocations: 225 kB / 0.4889 GB, free: 15.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.2366, allocations: 406.1 kB / 0.4893 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005624/0.2371, allocations: 194.8 kB / 0.4895 GB, free: 14.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2373, allocations: 374.8 kB / 0.4899 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003311/0.2406, allocations: 1.345 MB / 0.4912 GB, free: 12.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003415/0.244, allocations: 1.493 MB / 0.4926 GB, free: 11.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006156/0.2502, allocations: 2.441 MB / 0.495 GB, free: 8.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.2502, allocations: 4 kB / 0.495 GB, free: 8.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007514/0.2578, allocations: 2.826 MB / 0.4978 GB, free: 5.969 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.2579, allocations: 12.25 kB / 0.4978 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.2579, allocations: 4 kB / 0.4978 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.69e-05/0.2579, allocations: 8 kB / 0.4978 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/0.2607, allocations: 407.4 kB / 0.4982 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.112e-05/0.2608, allocations: 11.94 kB / 0.4982 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.2627, allocations: 223.7 kB / 0.4984 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.2629, allocations: 36 kB / 0.4984 GB, free: 5.281 MB / 382.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.0005414/0.2635, allocations: 234 kB / 0.4987 GB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/0.2637, allocations: 59.25 kB / 0.4987 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002546/0.264, allocations: 116.7 kB / 0.4988 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.264, allocations: 12 kB / 0.4989 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.264, allocations: 3.938 kB / 0.4989 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.264, allocations: 15.98 kB / 0.4989 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.221/0.485, allocations: 5.218 MB / 0.504 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001265/0.4852, allocations: 21.31 kB / 0.504 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002377/0.4876, allocations: 358.1 kB / 0.5043 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.25e-05/0.4877, allocations: 28.06 kB / 0.5044 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002747/0.488, allocations: 45.84 kB / 0.5044 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.801e-05/0.4881, allocations: 39.75 kB / 0.5044 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.061e-05/0.4881, allocations: 35.28 kB / 0.5045 GB, free: 50.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/0.4986, allocations: 3.09 MB / 0.5075 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007276/0.4993, allocations: 237.8 kB / 0.5077 GB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002656/0.4996, allocations: 51.03 kB / 0.5078 GB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00181/0.5014, allocations: 195.4 kB / 0.5079 GB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007447/0.5022, allocations: 215.5 kB / 0.5082 GB, free: 49.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/0.5024, allocations: 59.98 kB / 0.5082 GB, free: 49.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005145/0.503, allocations: 263.1 kB / 0.5085 GB, free: 49.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.503, allocations: 1.094 kB / 0.5085 GB, free: 49.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001805/0.5048, allocations: 229.2 kB / 0.5087 GB, free: 49.09 MB / 382.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.0003373/0.5051, allocations: 178.6 kB / 0.5089 GB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008111/0.5133, allocations: 2.383 MB / 0.5112 GB, free: 48.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.599e-05/0.5133, allocations: 3.938 kB / 0.5112 GB, free: 48.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003269/0.5166, allocations: 1.063 MB / 0.5122 GB, free: 47.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001462/0.5181, allocations: 153.3 kB / 0.5124 GB, free: 47.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004484/0.5226, allocations: 1.943 MB / 0.5143 GB, free: 46.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007468/0.5233, allocations: 0.9233 MB / 0.5152 GB, free: 45.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001659/0.525, allocations: 217.2 kB / 0.5154 GB, free: 45.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008756/0.5259, allocations: 70.73 kB / 0.5154 GB, free: 45.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5259, allocations: 3.062 kB / 0.5154 GB, free: 45.48 MB / 382.1 MB Notification: Performance of Templates: time 0.03056/0.5565, allocations: 16.68 MB / 0.5317 GB, free: 34.64 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches