Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 110 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 242.5 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2058/0.2058, allocations: 44.17 MB / 336.8 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 64.34 kB / 408.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.105, allocations: 60.82 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003573/0.1086, allocations: 2.445 MB / 471.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.1102, allocations: 0.932 MB / 472.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.1105, allocations: 7.938 kB / 472.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.1109, allocations: 95.52 kB / 472.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002934/0.1112, allocations: 87.5 kB / 472.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006919/0.1119, allocations: 255.6 kB / 473 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007405/0.1127, allocations: 0.6782 MB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.1128, allocations: 73.05 kB / 473.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004235/0.1133, allocations: 271 kB / 474 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004183/0.1137, allocations: 318.7 kB / 474.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.1138, allocations: 32 kB / 474.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.1139, allocations: 36 kB / 474.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001878/0.1141, allocations: 175.5 kB / 474.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.1144, allocations: 218.8 kB / 474.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003498/0.1147, allocations: 387.5 kB / 475.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.1147, allocations: 0 / 475.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1148, allocations: 7.875 kB / 475.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.1148, allocations: 0 / 475.1 MB, free: 8.82 MB / 350.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.002354/0.1171, allocations: 0.9354 MB / 476.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.1172, allocations: 12.03 kB / 476.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.1173, allocations: 68.28 kB / 476.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004791/0.1178, allocations: 375.1 kB / 476.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.1182, allocations: 259.7 kB / 476.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.971e-05/0.1183, allocations: 40.38 kB / 476.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.1202, allocations: 0.8126 MB / 477.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.1203, allocations: 7.906 kB / 477.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.1e-05/0.1203, allocations: 16 kB / 477.6 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.1204, allocations: 8 kB / 477.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/0.1238, allocations: 1.204 MB / 478.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002875/0.1267, allocations: 2.046 MB / 480.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002899/0.1296, allocations: 0.8241 MB / 481.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.131, allocations: 497.3 kB / 482.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.203e-05/0.1311, allocations: 9.062 kB / 482.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.1311, allocations: 54.38 kB / 482.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.565e-06/0.1311, allocations: 0 / 482.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08975/0.2209, allocations: 15.75 MB / 498 MB, free: 1.473 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.221, allocations: 90.23 kB / 498.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.2215, allocations: 389.4 kB / 498.5 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.2217, allocations: 45.7 kB / 498.5 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.2218, allocations: 232.9 kB / 498.8 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/0.2223, allocations: 398.1 kB / 499.2 MB, free: 308 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000632/0.2229, allocations: 194.9 kB / 499.3 MB, free: 108 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2231, allocations: 370.8 kB / 499.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003545/0.2267, allocations: 1.345 MB / 0.4893 GB, free: 14.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/0.2303, allocations: 1.49 MB / 0.4908 GB, free: 12.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006341/0.2367, allocations: 2.445 MB / 0.4932 GB, free: 10.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.2367, allocations: 4 kB / 0.4932 GB, free: 10.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007961/0.2447, allocations: 2.834 MB / 0.4959 GB, free: 7.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.2448, allocations: 7.984 kB / 0.4959 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.2448, allocations: 4 kB / 0.4959 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.754e-05/0.2449, allocations: 8 kB / 0.4959 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/0.2479, allocations: 407.6 kB / 0.4963 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.863e-05/0.248, allocations: 11.94 kB / 0.4963 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.2501, allocations: 215.7 kB / 0.4965 GB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/0.2503, allocations: 43.98 kB / 0.4966 GB, free: 6.836 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.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.000516/0.2508, allocations: 233.5 kB / 0.4968 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.2511, allocations: 63.25 kB / 0.4969 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.2513, allocations: 108.7 kB / 0.497 GB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.2514, allocations: 12 kB / 0.497 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.2514, allocations: 3.938 kB / 0.497 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.2514, allocations: 7.969 kB / 0.497 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.2628, allocations: 5.231 MB / 0.5021 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.079e-05/0.2629, allocations: 20 kB / 0.5021 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/0.2645, allocations: 355.4 kB / 0.5025 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.701e-05/0.2645, allocations: 28 kB / 0.5025 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.2647, allocations: 48 kB / 0.5025 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.738e-05/0.2647, allocations: 47.84 kB / 0.5026 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.04e-05/0.2647, allocations: 31.88 kB / 0.5026 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1776/0.4423, allocations: 3.093 MB / 0.5056 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003798/0.4427, allocations: 238.6 kB / 0.5059 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.4429, allocations: 48.61 kB / 0.5059 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.4442, allocations: 193.2 kB / 0.5061 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004435/0.4446, allocations: 215 kB / 0.5063 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.375e-05/0.4447, allocations: 55.91 kB / 0.5064 GB, free: 49.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002827/0.445, allocations: 263.5 kB / 0.5066 GB, free: 49.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.52e-07/0.445, allocations: 3.375 kB / 0.5066 GB, free: 49.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001009/0.446, allocations: 234.4 kB / 0.5068 GB, free: 49.53 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 (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.0002076/0.4462, allocations: 173.5 kB / 0.507 GB, free: 49.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005976/0.4522, allocations: 2.342 MB / 0.5093 GB, free: 48.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/0.4523, allocations: 4.406 kB / 0.5093 GB, free: 48.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003384/0.4557, allocations: 1.06 MB / 0.5103 GB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.457, allocations: 157.7 kB / 0.5105 GB, free: 48.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.4605, allocations: 2.243 MB / 0.5127 GB, free: 46.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.461, allocations: 0.9261 MB / 0.5136 GB, free: 45.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008558/0.4618, allocations: 72.12 kB / 0.5136 GB, free: 45.8 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4618, allocations: 3.078 kB / 0.5136 GB, free: 45.8 MB / 382.1 MB Notification: Performance of Templates: time 0.02126/0.4831, allocations: 14.21 MB / 0.5275 GB, free: 38.53 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches