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.001244/0.001244, allocations: 96.02 kB / 17.35 MB, free: 6.367 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.001375/0.001375, allocations: 176.1 kB / 18.25 MB, free: 5.523 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.376/1.376, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2012/0.2012, allocations: 44.24 MB / 337.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003957, allocations: 8.625 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1237, allocations: 61.93 MB / 472.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00289/0.1267, allocations: 2.067 MB / 474.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.1286, allocations: 0.9242 MB / 475.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003002/0.1289, allocations: 11.81 kB / 475.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004428/0.1293, allocations: 107.5 kB / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004156/0.1298, allocations: 79.58 kB / 475.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008674/0.1307, allocations: 259.6 kB / 475.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.1319, allocations: 0.6782 MB / 476.4 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.1321, allocations: 65.06 kB / 476.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/0.1326, allocations: 267 kB / 476.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.133, allocations: 314.7 kB / 477 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.671e-05/0.1331, allocations: 32 kB / 477 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.231e-05/0.1332, allocations: 32 kB / 477.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.1334, allocations: 163.5 kB / 477.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002275/0.1336, allocations: 244.4 kB / 477.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004987/0.1341, allocations: 0.5101 MB / 478 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1341, allocations: 0 / 478 MB, free: 7.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1341, allocations: 0 / 478 MB, free: 7.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.1342, allocations: 0 / 478 MB, free: 7.586 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.002216/0.1364, allocations: 0.92 MB / 478.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1364, allocations: 12.03 kB / 478.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1366, allocations: 60.38 kB / 479 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.1371, allocations: 379.1 kB / 479.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004172/0.1375, allocations: 271.7 kB / 479.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1376, allocations: 44.38 kB / 479.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/0.1398, allocations: 0.8712 MB / 480.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.1399, allocations: 7.938 kB / 480.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/0.1399, allocations: 16 kB / 480.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.14, allocations: 8 kB / 480.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003787/0.1438, allocations: 1.329 MB / 481.9 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002917/0.1467, allocations: 2.085 MB / 484 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/0.15, allocations: 0.9015 MB / 484.9 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.1517, allocations: 0.5482 MB / 485.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.918e-05/0.1518, allocations: 8.969 kB / 485.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.1518, allocations: 50.48 kB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.334e-06/0.1518, allocations: 3.938 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.09542/0.2473, allocations: 18.23 MB / 0.4919 GB, free: 13.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.2474, allocations: 90.23 kB / 0.492 GB, free: 13.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000573/0.248, allocations: 385.4 kB / 0.4923 GB, free: 12.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.2482, allocations: 45.7 kB / 0.4924 GB, free: 12.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.2484, allocations: 221.1 kB / 0.4926 GB, free: 12.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004651/0.2488, allocations: 402 kB / 0.493 GB, free: 12.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/0.2491, allocations: 101.7 kB / 0.4931 GB, free: 12.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.2493, allocations: 374.8 kB / 0.4934 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004014/0.2534, allocations: 1.463 MB / 0.4949 GB, free: 10.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004009/0.2574, allocations: 1.603 MB / 0.4964 GB, free: 8.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007584/0.265, allocations: 2.676 MB / 0.499 GB, free: 5.926 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.265, allocations: 0 / 0.499 GB, free: 5.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008606/0.2737, allocations: 3.053 MB / 0.502 GB, free: 2.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.2737, allocations: 8 kB / 0.502 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.2737, allocations: 4.25 kB / 0.502 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.211e-05/0.2738, allocations: 12 kB / 0.502 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003138/0.2769, allocations: 463.3 kB / 0.5025 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.363e-05/0.277, allocations: 15.88 kB / 0.5025 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002157/0.2791, allocations: 279.7 kB / 0.5028 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001894/0.2793, allocations: 47.97 kB / 0.5028 GB, free: 2.051 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.0005975/0.28, allocations: 225.5 kB / 0.503 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.2802, allocations: 67.23 kB / 0.5031 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003563/0.2806, allocations: 112.7 kB / 0.5032 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.2806, allocations: 12 kB / 0.5032 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/0.2806, allocations: 3.938 kB / 0.5032 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.2807, allocations: 7.969 kB / 0.5032 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2514/0.5321, allocations: 5.544 MB / 0.5086 GB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.053e-05/0.5321, allocations: 20.44 kB / 0.5087 GB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.5338, allocations: 416 kB / 0.5091 GB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.343e-05/0.5339, allocations: 26.78 kB / 0.5091 GB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.191e-05/0.534, allocations: 47.88 kB / 0.5091 GB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-05/0.534, allocations: 43.27 kB / 0.5092 GB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.171e-05/0.534, allocations: 35.78 kB / 0.5092 GB, free: 49.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007812/0.5418, allocations: 3.427 MB / 0.5126 GB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004392/0.5423, allocations: 239.3 kB / 0.5128 GB, free: 48.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.5425, allocations: 52.72 kB / 0.5128 GB, free: 48.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.5439, allocations: 254.5 kB / 0.5131 GB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000455/0.5443, allocations: 213.7 kB / 0.5133 GB, free: 48.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-05/0.5445, allocations: 58.09 kB / 0.5133 GB, free: 48.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000295/0.5448, allocations: 271 kB / 0.5136 GB, free: 47.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5448, allocations: 4 kB / 0.5136 GB, free: 47.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00107/0.5458, allocations: 229.7 kB / 0.5138 GB, free: 47.86 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.0001958/0.546, allocations: 168.2 kB / 0.514 GB, free: 47.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007122/0.5532, allocations: 2.562 MB / 0.5165 GB, free: 46.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.136e-05/0.5532, allocations: 3.469 kB / 0.5165 GB, free: 46.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003856/0.5571, allocations: 1.179 MB / 0.5176 GB, free: 46.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/0.5593, allocations: 159.6 kB / 0.5178 GB, free: 46.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003789/0.5631, allocations: 2.223 MB / 0.52 GB, free: 44.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005636/0.5637, allocations: 0.9268 MB / 0.5209 GB, free: 44.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001355/0.565, allocations: 195.1 kB / 0.521 GB, free: 43.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005683/0.5656, allocations: 66.66 kB / 0.5211 GB, free: 43.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5656, allocations: 0 / 0.5211 GB, free: 43.97 MB / 382.1 MB Notification: Performance of Templates: time 0.02091/0.5865, allocations: 15.06 MB / 0.5358 GB, free: 31.76 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches