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.0009021/0.0009018, allocations: 99.08 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.7 MB / 246.4 MB, free: 11.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2522/0.2522, allocations: 46.19 MB / 344.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002634, allocations: 12 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.142, allocations: 63.55 MB / 482.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002726/0.1448, allocations: 1.999 MB / 484.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1466, allocations: 0.9245 MB / 485.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003003/0.147, allocations: 3.938 kB / 485.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000404/0.1474, allocations: 95.44 kB / 485.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.1477, allocations: 75.53 kB / 485.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000726/0.1484, allocations: 223.7 kB / 485.7 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008405/0.1493, allocations: 0.6158 MB / 486.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.1495, allocations: 61.23 kB / 486.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000546/0.1501, allocations: 255.1 kB / 486.6 MB, free: 284 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000563/0.1506, allocations: 302.8 kB / 486.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.1508, allocations: 32 kB / 487 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.151, allocations: 32 kB / 487 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.1512, allocations: 147.6 kB / 487.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.1514, allocations: 93.45 kB / 487.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004374/0.1518, allocations: 379.3 kB / 487.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1518, allocations: 0 / 487.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1518, allocations: 0 / 487.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.1519, allocations: 0 / 487.6 MB, free: 15.3 MB / 366.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.002427/0.1543, allocations: 0.9337 MB / 488.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.1544, allocations: 8.031 kB / 488.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/0.1546, allocations: 63.44 kB / 488.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006051/0.1552, allocations: 370 kB / 489 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000408/0.1556, allocations: 275.1 kB / 489.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.1557, allocations: 47.91 kB / 489.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002048/0.1578, allocations: 0.8711 MB / 490.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.1578, allocations: 0 / 490.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.1579, allocations: 16 kB / 490.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1579, allocations: 12 kB / 490.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/0.1614, allocations: 1.317 MB / 491.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003188/0.1646, allocations: 2.078 MB / 493.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.1674, allocations: 0.8991 MB / 494.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/0.1689, allocations: 0.5487 MB / 495 MB, free: 7.609 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.852e-05/0.169, allocations: 4 kB / 495 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.169, allocations: 42.56 kB / 495.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 4.589e-06/0.169, allocations: 0 / 495.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08395/0.253, allocations: 18.23 MB / 0.5013 GB, free: 5.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.2532, allocations: 90.23 kB / 0.5013 GB, free: 5.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007649/0.254, allocations: 385.5 kB / 0.5017 GB, free: 4.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002118/0.2542, allocations: 49.64 kB / 0.5018 GB, free: 4.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.2545, allocations: 225 kB / 0.502 GB, free: 4.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000644/0.2552, allocations: 394.2 kB / 0.5023 GB, free: 3.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.2554, allocations: 24 kB / 0.5024 GB, free: 3.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000285/0.2557, allocations: 374.8 kB / 0.5027 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003782/0.2595, allocations: 1.455 MB / 0.5041 GB, free: 2.133 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003886/0.2634, allocations: 1.595 MB / 0.5057 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3013/0.5647, allocations: 1.299 MB / 0.507 GB, free: 42.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.5647, allocations: 4.5 kB / 0.507 GB, free: 42.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008764/0.5735, allocations: 3.054 MB / 0.51 GB, free: 42.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.5736, allocations: 6.406 kB / 0.51 GB, free: 42.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.5736, allocations: 3.438 kB / 0.51 GB, free: 42.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.908e-05/0.5737, allocations: 9.375 kB / 0.51 GB, free: 42.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/0.5765, allocations: 474.5 kB / 0.5104 GB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.941e-05/0.5765, allocations: 9.812 kB / 0.5104 GB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.5784, allocations: 283.2 kB / 0.5107 GB, free: 41.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.5786, allocations: 39.5 kB / 0.5108 GB, free: 41.97 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.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004192/0.579, allocations: 228.8 kB / 0.511 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.5792, allocations: 63.5 kB / 0.511 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00028/0.5795, allocations: 117.3 kB / 0.5111 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.5795, allocations: 11.25 kB / 0.5112 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/0.5795, allocations: 0.875 kB / 0.5112 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/0.5796, allocations: 9.266 kB / 0.5112 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01179/0.5914, allocations: 5.541 MB / 0.5166 GB, free: 39.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.672e-05/0.5914, allocations: 20.69 kB / 0.5166 GB, free: 39.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/0.593, allocations: 416 kB / 0.517 GB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.984e-05/0.5931, allocations: 31.67 kB / 0.517 GB, free: 39.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-05/0.5932, allocations: 51.59 kB / 0.5171 GB, free: 39.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-05/0.5932, allocations: 39.17 kB / 0.5171 GB, free: 39.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.52e-05/0.5932, allocations: 31.84 kB / 0.5171 GB, free: 39.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007158/0.6004, allocations: 3.415 MB / 0.5205 GB, free: 37.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/0.6009, allocations: 245.7 kB / 0.5207 GB, free: 37.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.601, allocations: 49.56 kB / 0.5208 GB, free: 37.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.6023, allocations: 256.5 kB / 0.521 GB, free: 37.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004431/0.6028, allocations: 232.3 kB / 0.5212 GB, free: 37.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.625e-05/0.6029, allocations: 58.75 kB / 0.5213 GB, free: 37.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003225/0.6032, allocations: 261.4 kB / 0.5215 GB, free: 36.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6032, allocations: 0 / 0.5215 GB, free: 36.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00104/0.6042, allocations: 228.2 kB / 0.5217 GB, free: 36.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002122/0.6045, allocations: 175.4 kB / 0.5219 GB, free: 36.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006123/0.6106, allocations: 2.559 MB / 0.5244 GB, free: 35.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/0.6106, allocations: 3.562 kB / 0.5244 GB, free: 35.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003365/0.614, allocations: 1.174 MB / 0.5256 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.6154, allocations: 151.6 kB / 0.5257 GB, free: 35.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.6188, allocations: 2.169 MB / 0.5278 GB, free: 33.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.6191, allocations: 0.9217 MB / 0.5287 GB, free: 32.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001164/0.6203, allocations: 207.3 kB / 0.5289 GB, free: 32.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005329/0.6208, allocations: 71.36 kB / 0.529 GB, free: 32.62 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.6208, allocations: 0 / 0.529 GB, free: 32.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01817/0.639, allocations: 14.61 MB / 0.5433 GB, free: 18.05 MB / 382.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/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_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches