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.001074/0.001074, allocations: 109.8 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.001219, allocations: 207.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2056/0.2056, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 75.88 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2909, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003362/0.2943, allocations: 2.422 MB / 0.534 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.296, allocations: 0.9739 MB / 0.535 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.2961, allocations: 8.562 kB / 0.535 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003925/0.2965, allocations: 117.2 kB / 0.5351 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.2968, allocations: 87.31 kB / 0.5352 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006137/0.2974, allocations: 292.5 kB / 0.5354 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007121/0.2981, allocations: 0.7204 MB / 0.5361 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.2983, allocations: 75.38 kB / 0.5362 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003431/0.2987, allocations: 297.4 kB / 0.5365 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003747/0.299, allocations: 333.1 kB / 0.5368 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.2992, allocations: 59.69 kB / 0.5369 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.473e-05/0.2993, allocations: 60.19 kB / 0.5369 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.2995, allocations: 193 kB / 0.5371 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.2997, allocations: 238.5 kB / 0.5373 GB, free: 9.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004899/0.3002, allocations: 0.558 MB / 0.5379 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3002, allocations: 0 / 0.5379 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3003, allocations: 1.031 kB / 0.5379 GB, free: 8.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.3003, allocations: 0 / 0.5379 GB, free: 8.828 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.002418/0.3027, allocations: 0.9354 MB / 0.5388 GB, free: 8.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.3027, allocations: 13.19 kB / 0.5388 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.3029, allocations: 65.03 kB / 0.5389 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005263/0.3034, allocations: 374 kB / 0.5392 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003851/0.3038, allocations: 267.1 kB / 0.5395 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.7e-05/0.3039, allocations: 39.69 kB / 0.5395 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.3062, allocations: 0.8166 MB / 0.5403 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3062, allocations: 5.344 kB / 0.5403 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.394e-05/0.3063, allocations: 16 kB / 0.5403 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.3063, allocations: 10.12 kB / 0.5404 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003757/0.3101, allocations: 1.202 MB / 0.5415 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.313, allocations: 2.018 MB / 0.5435 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003347/0.3163, allocations: 0.8271 MB / 0.5443 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.3181, allocations: 0.4984 MB / 0.5448 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.551e-05/0.3182, allocations: 11.98 kB / 0.5448 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.3182, allocations: 42.5 kB / 0.5448 GB, free: 3.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.435e-06/0.3182, allocations: 0 / 0.5448 GB, free: 3.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.09387/0.4121, allocations: 15.74 MB / 0.5602 GB, free: 4.016 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.4122, allocations: 90.23 kB / 0.5603 GB, free: 3.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004663/0.4126, allocations: 397.4 kB / 0.5607 GB, free: 3.504 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001752/0.4128, allocations: 49.7 kB / 0.5607 GB, free: 3.449 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.413, allocations: 217 kB / 0.5609 GB, free: 3.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003571/0.4133, allocations: 402.1 kB / 0.5613 GB, free: 2.832 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005638/0.4139, allocations: 198.8 kB / 0.5615 GB, free: 2.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4141, allocations: 370.8 kB / 0.5619 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00383/0.4179, allocations: 1.342 MB / 0.5632 GB, free: 0.918 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004031/0.4219, allocations: 1.493 MB / 0.5646 GB, free: 15.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007095/0.429, allocations: 2.453 MB / 0.567 GB, free: 12.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.4291, allocations: 0 / 0.567 GB, free: 12.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008091/0.4372, allocations: 2.834 MB / 0.5698 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.4372, allocations: 8 kB / 0.5698 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.4372, allocations: 4 kB / 0.5698 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4373, allocations: 8 kB / 0.5698 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002925/0.4402, allocations: 407.6 kB / 0.5702 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.4402, allocations: 11.94 kB / 0.5702 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.4423, allocations: 223.7 kB / 0.5704 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.4425, allocations: 40 kB / 0.5705 GB, free: 9.352 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.000525/0.443, allocations: 230.8 kB / 0.5707 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.4433, allocations: 59.25 kB / 0.5707 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.4435, allocations: 112.7 kB / 0.5709 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.4436, allocations: 15.98 kB / 0.5709 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/0.4436, allocations: 3.938 kB / 0.5709 GB, free: 8.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.4436, allocations: 11.92 kB / 0.5709 GB, free: 8.918 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/0.4556, allocations: 5.228 MB / 0.576 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.619e-05/0.4557, allocations: 20.22 kB / 0.576 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.4573, allocations: 351.4 kB / 0.5763 GB, free: 2.984 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.1e-05/0.4573, allocations: 32 kB / 0.5764 GB, free: 2.953 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.862e-05/0.4574, allocations: 51.98 kB / 0.5764 GB, free: 2.902 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.8e-05/0.4574, allocations: 43.8 kB / 0.5765 GB, free: 2.859 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.055e-05/0.4575, allocations: 35.86 kB / 0.5765 GB, free: 2.824 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007623/0.4651, allocations: 3.087 MB / 0.5795 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003068/0.4654, allocations: 232.3 kB / 0.5797 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.4656, allocations: 51.98 kB / 0.5798 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/0.467, allocations: 195.8 kB / 0.58 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004128/0.4674, allocations: 215.2 kB / 0.5802 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.534e-05/0.4675, allocations: 56 kB / 0.5802 GB, free: 14.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002876/0.4678, allocations: 263.1 kB / 0.5805 GB, free: 14.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4678, allocations: 0 / 0.5805 GB, free: 14.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009883/0.4688, allocations: 232 kB / 0.5807 GB, free: 14.2 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.0002067/0.469, allocations: 170.7 kB / 0.5809 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006777/0.4758, allocations: 2.402 MB / 0.5832 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.4758, allocations: 0 / 0.5832 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003446/0.4793, allocations: 1.067 MB / 0.5843 GB, free: 10.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.4806, allocations: 137.4 kB / 0.5844 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.4844, allocations: 1.994 MB / 0.5863 GB, free: 8.113 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.485, allocations: 0.9282 MB / 0.5872 GB, free: 7.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007073/0.4857, allocations: 79.42 kB / 0.5873 GB, free: 7.082 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4858, allocations: 0 / 0.5873 GB, free: 7.082 MB / 446.1 MB Notification: Performance of Templates: time 0.02001/0.5058, allocations: 14.33 MB / 0.6013 GB, free: 8.781 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