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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007873/0.0007873, allocations: 98.72 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1819/0.1819, allocations: 45.16 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.256e-05/1.258e-05, allocations: 3.938 kB / 453.2 MB, free: 75.85 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.09953, allocations: 63.25 MB / 0.5044 GB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3444/0.4439, allocations: 89.58 MB / 0.5918 GB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001553/0.4441, allocations: 61.47 kB / 0.5919 GB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03347/0.4776, allocations: 11.85 MB / 0.6035 GB, free: 3.062 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4777, allocations: 0 / 0.6035 GB, free: 3.062 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.4777, allocations: 12 kB / 0.6035 GB, free: 3.051 MB / 394.7 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.001894/0.4796, allocations: 0.8997 MB / 0.6044 GB, free: 2.141 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.4796, allocations: 8.031 kB / 0.6044 GB, free: 2.133 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.4797, allocations: 64.12 kB / 0.6044 GB, free: 2.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.4802, allocations: 364.6 kB / 0.6048 GB, free: 1.711 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003453/0.4806, allocations: 258.8 kB / 0.605 GB, free: 1.426 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-05/0.4807, allocations: 27.91 kB / 0.605 GB, free: 1.398 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001179/0.4819, allocations: 0.8029 MB / 0.6058 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.4827, allocations: 0.5576 MB / 0.6064 GB, free: 424 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.4827, allocations: 0 / 0.6064 GB, free: 424 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.01e-05/0.4828, allocations: 0 / 0.6064 GB, free: 424 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.4828, allocations: 15.98 kB / 0.6064 GB, free: 408 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002517/0.4853, allocations: 2.011 MB / 0.6083 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.4866, allocations: 0.5664 MB / 0.6089 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004151/0.487, allocations: 292.1 kB / 0.6092 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.337e-05/0.4871, allocations: 12.3 kB / 0.6092 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.4872, allocations: 43.47 kB / 0.6092 GB, free: 14.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.783e-06/0.4872, allocations: 0 / 0.6092 GB, free: 14.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01791/0.5051, allocations: 7.119 MB / 0.6162 GB, free: 8.652 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.5051, allocations: 90.23 kB / 0.6163 GB, free: 8.543 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003597/0.5055, allocations: 343.8 kB / 0.6166 GB, free: 8.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.5057, allocations: 25.7 kB / 0.6166 GB, free: 8.238 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.5058, allocations: 218.6 kB / 0.6168 GB, free: 8.062 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003333/0.5061, allocations: 389.1 kB / 0.6172 GB, free: 7.723 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.5063, allocations: 0 / 0.6172 GB, free: 7.723 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5064, allocations: 380.3 kB / 0.6176 GB, free: 7.367 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.5076, allocations: 0.9531 MB / 0.6185 GB, free: 6.906 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.5089, allocations: 1.088 MB / 0.6196 GB, free: 6.289 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.5099, allocations: 0.8025 MB / 0.6203 GB, free: 5.859 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.5099, allocations: 0 / 0.6203 GB, free: 5.859 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00273/0.5126, allocations: 1.994 MB / 0.6223 GB, free: 4.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.5127, allocations: 8 kB / 0.6223 GB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.5127, allocations: 0 / 0.6223 GB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.5127, allocations: 12 kB / 0.6223 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/0.5154, allocations: 470 kB / 0.6228 GB, free: 4.238 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.5154, allocations: 11.94 kB / 0.6228 GB, free: 4.227 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.5173, allocations: 259.1 kB / 0.623 GB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.5175, allocations: 46.42 kB / 0.6231 GB, free: 3.941 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.0003438/0.5178, allocations: 124.7 kB / 0.6232 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.518, allocations: 59.25 kB / 0.6232 GB, free: 3.754 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.5183, allocations: 100.3 kB / 0.6233 GB, free: 3.723 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.5183, allocations: 12 kB / 0.6233 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.5183, allocations: 0 / 0.6233 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.5183, allocations: 7.984 kB / 0.6234 GB, free: 3.703 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007518/0.5258, allocations: 4.561 MB / 0.6278 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/0.5259, allocations: 20 kB / 0.6278 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/0.5274, allocations: 416.2 kB / 0.6282 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.903e-05/0.5275, allocations: 35.98 kB / 0.6283 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-05/0.5276, allocations: 27.31 kB / 0.6283 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.538e-05/0.5276, allocations: 43.81 kB / 0.6283 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.192e-05/0.5276, allocations: 31.88 kB / 0.6284 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.5308, allocations: 3.244 MB / 0.6315 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003289/0.5311, allocations: 244.3 kB / 0.6318 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.5313, allocations: 35.94 kB / 0.6318 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.5326, allocations: 235.8 kB / 0.632 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003856/0.533, allocations: 239.2 kB / 0.6322 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.148e-05/0.5331, allocations: 56 kB / 0.6323 GB, free: 10.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000273/0.5333, allocations: 256.6 kB / 0.6325 GB, free: 10.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5333, allocations: 0 / 0.6325 GB, free: 10.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009459/0.5343, allocations: 196 kB / 0.6327 GB, free: 10.43 MB / 426.7 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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.0002311/0.5345, allocations: 152.1 kB / 0.6329 GB, free: 10.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.5369, allocations: 1.614 MB / 0.6344 GB, free: 8.664 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.5369, allocations: 7.938 kB / 0.6345 GB, free: 8.656 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.5385, allocations: 0.7344 MB / 0.6352 GB, free: 7.926 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008188/0.5393, allocations: 114.3 kB / 0.6353 GB, free: 7.816 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.5421, allocations: 1.621 MB / 0.6369 GB, free: 5.875 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005265/0.5427, allocations: 0.9362 MB / 0.6378 GB, free: 4.906 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001216/0.5439, allocations: 194 kB / 0.638 GB, free: 4.715 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005482/0.5445, allocations: 67.42 kB / 0.638 GB, free: 4.648 MB / 426.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5445, allocations: 0 / 0.638 GB, free: 4.648 MB / 426.7 MB Notification: Performance of Templates: time 0.02113/0.5656, allocations: 14.45 MB / 0.6521 GB, free: 6.223 MB / 442.7 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches