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.00118/0.00118, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001209/0.001209, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.358/1.358, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2001/0.2001, allocations: 44.18 MB / 337.3 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 61.69 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1114, allocations: 60.83 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004301/0.1158, allocations: 2.388 MB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1176, allocations: 0.9436 MB / 473.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.1179, allocations: 15.88 kB / 473.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000395/0.1183, allocations: 111.2 kB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.1185, allocations: 99.36 kB / 473.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006853/0.1192, allocations: 287.5 kB / 473.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007075/0.12, allocations: 0.7212 MB / 474.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.1202, allocations: 69.05 kB / 474.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003812/0.1205, allocations: 299 kB / 474.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003794/0.1209, allocations: 338.7 kB / 475.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.964e-05/0.121, allocations: 60 kB / 475.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.1212, allocations: 60 kB / 475.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.1214, allocations: 183.5 kB / 475.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.1216, allocations: 250.7 kB / 475.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005245/0.1221, allocations: 0.5415 MB / 476.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.1221, allocations: 4 kB / 476.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1221, allocations: 0 / 476.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1222, allocations: 0 / 476.3 MB, free: 8.004 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.002285/0.1244, allocations: 0.9315 MB / 477.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.1245, allocations: 12.02 kB / 477.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.1247, allocations: 68.22 kB / 477.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.1252, allocations: 371.2 kB / 477.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003707/0.1256, allocations: 263.7 kB / 477.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.1257, allocations: 40.38 kB / 477.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/0.1279, allocations: 0.8126 MB / 478.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.128, allocations: 7.844 kB / 478.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.387e-05/0.128, allocations: 16 kB / 478.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1281, allocations: 12 kB / 478.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003814/0.1319, allocations: 1.204 MB / 480 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003092/0.135, allocations: 2.042 MB / 482 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/0.1383, allocations: 0.8207 MB / 482.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.1398, allocations: 497.3 kB / 483.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.1399, allocations: 13.05 kB / 483.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.1399, allocations: 42.5 kB / 483.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 3.166e-06/0.14, allocations: 0 / 483.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.105/0.245, allocations: 15.74 MB / 499.1 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.2451, allocations: 98.16 kB / 499.2 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/0.2456, allocations: 389.4 kB / 499.6 MB, free: 176 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.2458, allocations: 41.7 kB / 499.6 MB, free: 128 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.246, allocations: 225.1 kB / 499.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004287/0.2464, allocations: 406 kB / 0.4885 GB, free: 15.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005778/0.247, allocations: 194.8 kB / 0.4887 GB, free: 15.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.2472, allocations: 374.8 kB / 0.4891 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003689/0.2509, allocations: 1.342 MB / 0.4904 GB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003751/0.2546, allocations: 1.497 MB / 0.4918 GB, free: 12.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006831/0.2615, allocations: 2.438 MB / 0.4942 GB, free: 9.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.2615, allocations: 4 kB / 0.4942 GB, free: 9.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00786/0.2694, allocations: 2.83 MB / 0.497 GB, free: 6.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.2694, allocations: 8 kB / 0.497 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.2695, allocations: 3.938 kB / 0.497 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.161e-05/0.2695, allocations: 8 kB / 0.497 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002747/0.2722, allocations: 411.6 kB / 0.4974 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.436e-05/0.2723, allocations: 15.88 kB / 0.4974 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.2744, allocations: 223.7 kB / 0.4976 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.2745, allocations: 36 kB / 0.4977 GB, free: 6.027 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.0005354/0.2751, allocations: 234 kB / 0.4979 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002555/0.2754, allocations: 63.25 kB / 0.498 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002615/0.2756, allocations: 116.7 kB / 0.4981 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.2757, allocations: 15.94 kB / 0.4981 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.2757, allocations: 3.938 kB / 0.4981 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.2757, allocations: 3.984 kB / 0.4981 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.2879, allocations: 5.233 MB / 0.5032 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.1774/0.4654, allocations: 20.86 kB / 0.5032 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/0.4674, allocations: 352.8 kB / 0.5036 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-05/0.4675, allocations: 27.69 kB / 0.5036 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/0.4676, allocations: 44.53 kB / 0.5036 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.807e-05/0.4677, allocations: 40.62 kB / 0.5037 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.223e-05/0.4677, allocations: 34.59 kB / 0.5037 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007725/0.4754, allocations: 3.092 MB / 0.5067 GB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004567/0.4759, allocations: 238.1 kB / 0.5069 GB, free: 49.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.4761, allocations: 51.8 kB / 0.507 GB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.4775, allocations: 188.4 kB / 0.5072 GB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004403/0.478, allocations: 220.9 kB / 0.5074 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.415e-05/0.4781, allocations: 53.59 kB / 0.5074 GB, free: 49.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003351/0.4784, allocations: 267.5 kB / 0.5077 GB, free: 49.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4784, allocations: 0 / 0.5077 GB, free: 49.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001058/0.4795, allocations: 234.3 kB / 0.5079 GB, free: 49.68 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.0002052/0.4797, allocations: 163.1 kB / 0.5081 GB, free: 49.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006812/0.4865, allocations: 2.412 MB / 0.5104 GB, free: 48.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.886e-05/0.4866, allocations: 2.906 kB / 0.5104 GB, free: 48.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003418/0.49, allocations: 1.063 MB / 0.5115 GB, free: 48.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.4914, allocations: 151.8 kB / 0.5116 GB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/0.4954, allocations: 2.003 MB / 0.5136 GB, free: 46.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.4959, allocations: 0.9259 MB / 0.5145 GB, free: 46.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007148/0.4966, allocations: 77.69 kB / 0.5145 GB, free: 46.09 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4966, allocations: 0 / 0.5145 GB, free: 46.09 MB / 382.1 MB Notification: Performance of Templates: time 0.01908/0.5157, allocations: 14.22 MB / 0.5284 GB, free: 38.19 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