Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002926/0.002931, allocations: 182.6 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.084/2.084, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001166, allocations: 99.33 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5616/0.5616, allocations: 43.55 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004973, allocations: 16 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1386, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003392/0.1421, allocations: 1.967 MB / 492.2 MB, free: 9.008 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.1446, allocations: 0.9565 MB / 493.1 MB, free: 8.043 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002879/0.145, allocations: 7.938 kB / 493.1 MB, free: 8.035 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003851/0.1454, allocations: 83.52 kB / 493.2 MB, free: 7.953 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003953/0.1458, allocations: 83.72 kB / 493.3 MB, free: 7.871 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009999/0.1468, allocations: 219.6 kB / 493.5 MB, free: 7.656 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009313/0.1477, allocations: 427.2 kB / 493.9 MB, free: 7.238 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.148, allocations: 69.22 kB / 494 MB, free: 7.168 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005242/0.1485, allocations: 263.1 kB / 494.3 MB, free: 6.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005381/0.1491, allocations: 298.9 kB / 494.5 MB, free: 6.617 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.1492, allocations: 28 kB / 494.6 MB, free: 6.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.1493, allocations: 32 kB / 494.6 MB, free: 6.559 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002512/0.1496, allocations: 151.5 kB / 494.8 MB, free: 6.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1498, allocations: 97.45 kB / 494.9 MB, free: 6.309 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005835/0.1503, allocations: 383.3 kB / 495.2 MB, free: 5.934 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1504, allocations: 0 / 495.2 MB, free: 5.934 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1504, allocations: 0 / 495.2 MB, free: 5.934 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1504, allocations: 0 / 495.2 MB, free: 5.934 MB / 378.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.003841/0.1542, allocations: 0.9315 MB / 496.2 MB, free: 4.953 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.1543, allocations: 12.02 kB / 496.2 MB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.1546, allocations: 59.44 kB / 496.2 MB, free: 4.883 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008298/0.1554, allocations: 370 kB / 496.6 MB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000596/0.156, allocations: 279.1 kB / 496.9 MB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.1562, allocations: 36 kB / 496.9 MB, free: 4.137 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003798/0.16, allocations: 0.8594 MB / 497.8 MB, free: 3.234 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.311e-05/0.1601, allocations: 3.953 kB / 497.8 MB, free: 3.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.609e-05/0.1602, allocations: 20 kB / 497.8 MB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.1602, allocations: 15.98 kB / 497.8 MB, free: 3.195 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006854/0.1671, allocations: 1.321 MB / 499.1 MB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3773/0.5444, allocations: 2.064 MB / 0.4894 GB, free: 42.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005914/0.5504, allocations: 0.8973 MB / 0.4903 GB, free: 42.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001786/0.5506, allocations: 9.891 kB / 0.4903 GB, free: 42.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.5507, allocations: 47.84 kB / 0.4904 GB, free: 42.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 4.218e-06/0.5507, allocations: 0 / 0.4904 GB, free: 42.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.1814/0.7321, allocations: 18.23 MB / 0.5082 GB, free: 39.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.7322, allocations: 91.52 kB / 0.5083 GB, free: 39.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.7329, allocations: 385.8 kB / 0.5086 GB, free: 39.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003241/0.7332, allocations: 45.05 kB / 0.5087 GB, free: 39.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.7334, allocations: 270.1 kB / 0.5089 GB, free: 39.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004925/0.7339, allocations: 407.3 kB / 0.5093 GB, free: 39.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.7341, allocations: 22.97 kB / 0.5093 GB, free: 39.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7343, allocations: 353.1 kB / 0.5097 GB, free: 38.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006864/0.7411, allocations: 1.448 MB / 0.5111 GB, free: 38.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007131/0.7483, allocations: 1.613 MB / 0.5127 GB, free: 37.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006513/0.7549, allocations: 1.301 MB / 0.5139 GB, free: 37.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.755, allocations: 4 kB / 0.5139 GB, free: 37.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.02147/0.7765, allocations: 3.042 MB / 0.5169 GB, free: 35.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/0.7766, allocations: 6.344 kB / 0.5169 GB, free: 35.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/0.7766, allocations: 3.219 kB / 0.5169 GB, free: 35.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.469e-05/0.7767, allocations: 10 kB / 0.5169 GB, free: 35.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007452/0.7841, allocations: 471.4 kB / 0.5174 GB, free: 35.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.555e-05/0.7843, allocations: 8.094 kB / 0.5174 GB, free: 35.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005568/0.7898, allocations: 283.3 kB / 0.5177 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005407/0.7905, allocations: 37.84 kB / 0.5177 GB, free: 35.85 MB / 378.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: 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.001068/0.7915, allocations: 241.7 kB / 0.5179 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005349/0.7921, allocations: 65.27 kB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004133/0.7925, allocations: 108.2 kB / 0.5181 GB, free: 35.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.151e-05/0.7926, allocations: 13.91 kB / 0.5181 GB, free: 35.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.526e-05/0.7926, allocations: 0 / 0.5181 GB, free: 35.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-05/0.7927, allocations: 10.88 kB / 0.5181 GB, free: 35.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0313/0.824, allocations: 5.54 MB / 0.5235 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001535/0.8242, allocations: 24.53 kB / 0.5235 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004662/0.8289, allocations: 408.9 kB / 0.5239 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.805e-05/0.829, allocations: 30.47 kB / 0.524 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003412/0.8294, allocations: 48.17 kB / 0.524 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.041e-05/0.8295, allocations: 44.47 kB / 0.524 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.905e-05/0.8295, allocations: 36.25 kB / 0.5241 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02162/0.8512, allocations: 4.498 MB / 0.5285 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.8524, allocations: 239 kB / 0.5287 GB, free: 29.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003947/0.8528, allocations: 48.27 kB / 0.5287 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003911/0.8567, allocations: 254.1 kB / 0.529 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/0.8582, allocations: 227 kB / 0.5292 GB, free: 29.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003299/0.8586, allocations: 58.09 kB / 0.5293 GB, free: 29.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007537/0.8594, allocations: 264.4 kB / 0.5295 GB, free: 29.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.304e-06/0.8594, allocations: 0 / 0.5295 GB, free: 29.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002788/0.8622, allocations: 237.5 kB / 0.5297 GB, free: 29.03 MB / 378.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: 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.0006151/0.8629, allocations: 168.3 kB / 0.5299 GB, free: 28.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01681/0.8797, allocations: 2.558 MB / 0.5324 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.301e-05/0.8798, allocations: 2.812 kB / 0.5324 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006608/0.8864, allocations: 1.176 MB / 0.5336 GB, free: 27.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001566/0.888, allocations: 138 kB / 0.5337 GB, free: 27.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006013/0.8941, allocations: 2.198 MB / 0.5358 GB, free: 25.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.8947, allocations: 0.9437 MB / 0.5368 GB, free: 25.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/0.8961, allocations: 73.83 kB / 0.5368 GB, free: 25.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.492e-06/0.8961, allocations: 0 / 0.5368 GB, free: 25.16 MB / 378.7 MB Notification: Performance of Templates: time 0.02833/0.9244, allocations: 13.77 MB / 0.5503 GB, free: 12.04 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches