Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.00126, allocations: 117.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 204.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 46.11 MB / 345 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 79.81 kB / 482 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4047, allocations: 62.43 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003892/0.4086, allocations: 2.421 MB / 0.534 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.4107, allocations: 0.9741 MB / 0.535 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.4109, allocations: 9.688 kB / 0.535 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004323/0.4114, allocations: 119.2 kB / 0.5351 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/0.4117, allocations: 97.56 kB / 0.5352 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006721/0.4124, allocations: 288.8 kB / 0.5355 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007554/0.4131, allocations: 0.7202 MB / 0.5362 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.4133, allocations: 68.17 kB / 0.5362 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003707/0.4137, allocations: 305.8 kB / 0.5365 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004045/0.4141, allocations: 324.1 kB / 0.5368 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.4143, allocations: 60.69 kB / 0.5369 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.4144, allocations: 63.56 kB / 0.5369 GB, free: 9.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.4146, allocations: 192.8 kB / 0.5371 GB, free: 9.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.4148, allocations: 239.4 kB / 0.5374 GB, free: 9.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006107/0.4155, allocations: 0.5577 MB / 0.5379 GB, free: 8.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4155, allocations: 0 / 0.5379 GB, free: 8.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4155, allocations: 1.5 kB / 0.5379 GB, free: 8.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.4155, allocations: 0 / 0.5379 GB, free: 8.797 MB / 398.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.002267/0.4178, allocations: 0.9379 MB / 0.5388 GB, free: 8.078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.4178, allocations: 9.219 kB / 0.5388 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.418, allocations: 62.53 kB / 0.5389 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006507/0.4186, allocations: 377.8 kB / 0.5392 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.419, allocations: 270.8 kB / 0.5395 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.4191, allocations: 42.78 kB / 0.5395 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.4211, allocations: 0.8058 MB / 0.5403 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.4211, allocations: 9 kB / 0.5403 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.897e-05/0.4212, allocations: 16.5 kB / 0.5404 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.4212, allocations: 10.25 kB / 0.5404 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003351/0.4246, allocations: 1.202 MB / 0.5415 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.4276, allocations: 2.026 MB / 0.5435 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.4304, allocations: 0.8251 MB / 0.5443 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.4318, allocations: 499.7 kB / 0.5448 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-05/0.4319, allocations: 8 kB / 0.5448 GB, free: 3.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.432, allocations: 42.5 kB / 0.5448 GB, free: 3.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.826e-06/0.432, allocations: 4 kB / 0.5449 GB, free: 3.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.07788/0.5099, allocations: 15.75 MB / 0.5602 GB, free: 3.957 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.51, allocations: 90.23 kB / 0.5603 GB, free: 3.848 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000513/0.5105, allocations: 389.4 kB / 0.5607 GB, free: 3.453 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.5107, allocations: 45.7 kB / 0.5607 GB, free: 3.402 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.5108, allocations: 225 kB / 0.561 GB, free: 3.176 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003805/0.5112, allocations: 402.1 kB / 0.5613 GB, free: 2.777 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005648/0.5118, allocations: 194.8 kB / 0.5615 GB, free: 2.578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.512, allocations: 374.8 kB / 0.5619 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003214/0.5152, allocations: 1.342 MB / 0.5632 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003341/0.5186, allocations: 1.497 MB / 0.5646 GB, free: 15.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005908/0.5245, allocations: 2.445 MB / 0.567 GB, free: 12.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.5245, allocations: 3.938 kB / 0.567 GB, free: 12.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006899/0.5314, allocations: 2.834 MB / 0.5698 GB, free: 9.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.5315, allocations: 4 kB / 0.5698 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.5315, allocations: 4 kB / 0.5698 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.117e-05/0.5315, allocations: 8 kB / 0.5698 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002577/0.5341, allocations: 411.6 kB / 0.5702 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.443e-05/0.5341, allocations: 19.86 kB / 0.5702 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.536, allocations: 215.7 kB / 0.5704 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001602/0.5362, allocations: 39.98 kB / 0.5705 GB, free: 9.293 MB / 430.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.0004744/0.5366, allocations: 230.8 kB / 0.5707 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002248/0.5369, allocations: 67.23 kB / 0.5708 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002405/0.5371, allocations: 112.7 kB / 0.5709 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.5371, allocations: 12 kB / 0.5709 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.5372, allocations: 3.938 kB / 0.5709 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.5372, allocations: 3.984 kB / 0.5709 GB, free: 8.863 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.5478, allocations: 5.223 MB / 0.576 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.392e-05/0.5479, allocations: 20 kB / 0.576 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.5493, allocations: 359.4 kB / 0.5764 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.807e-05/0.5493, allocations: 28 kB / 0.5764 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.62e-05/0.5494, allocations: 44 kB / 0.5764 GB, free: 2.863 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-05/0.5494, allocations: 43.86 kB / 0.5765 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.429e-05/0.5495, allocations: 35.81 kB / 0.5765 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006478/0.556, allocations: 3.086 MB / 0.5795 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000432/0.5564, allocations: 240.3 kB / 0.5797 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.5566, allocations: 51.98 kB / 0.5798 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.5577, allocations: 187.8 kB / 0.58 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004135/0.5581, allocations: 215.2 kB / 0.5802 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.796e-05/0.5582, allocations: 56 kB / 0.5802 GB, free: 14.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.5585, allocations: 267.1 kB / 0.5805 GB, free: 14.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5585, allocations: 0 / 0.5805 GB, free: 14.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009859/0.5595, allocations: 228 kB / 0.5807 GB, free: 14.16 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.0002266/0.5598, allocations: 170.7 kB / 0.5809 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005618/0.5654, allocations: 2.398 MB / 0.5832 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/0.5654, allocations: 4 kB / 0.5832 GB, free: 11.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003128/0.5686, allocations: 1.063 MB / 0.5842 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.57, allocations: 156.8 kB / 0.5844 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003887/0.5739, allocations: 2.005 MB / 0.5864 GB, free: 8.051 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.5744, allocations: 0.9243 MB / 0.5873 GB, free: 7.102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007221/0.5752, allocations: 79.42 kB / 0.5873 GB, free: 7.023 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5752, allocations: 0 / 0.5873 GB, free: 7.023 MB / 446.1 MB Notification: Performance of Templates: time 0.02332/0.5985, allocations: 14.32 MB / 0.6013 GB, free: 8.719 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches