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.001168/0.001168, allocations: 94.7 kB / 18.01 MB, free: 5.738 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.001689/0.001689, allocations: 176.1 kB / 18.91 MB, free: 4.871 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.402/1.402, allocations: 223.3 MB / 243 MB, free: 14.36 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.226/0.226, allocations: 44.25 MB / 338.3 MB, free: 2.395 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 8.281 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.09907, allocations: 61.93 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002659/0.1018, allocations: 2.067 MB / 475 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.1034, allocations: 0.9242 MB / 475.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002732/0.1037, allocations: 11.88 kB / 475.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003836/0.1041, allocations: 95.52 kB / 476 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.1044, allocations: 83.56 kB / 476.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.1051, allocations: 255.6 kB / 476.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008204/0.1059, allocations: 0.6782 MB / 477 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1062, allocations: 77.03 kB / 477.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005643/0.1067, allocations: 255 kB / 477.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005731/0.1073, allocations: 322.7 kB / 477.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1075, allocations: 28 kB / 477.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.1076, allocations: 32 kB / 477.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.1078, allocations: 163.5 kB / 477.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002865/0.1081, allocations: 252.4 kB / 478.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.1085, allocations: 375.3 kB / 478.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.1085, allocations: 0 / 478.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1085, allocations: 0 / 478.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.1086, allocations: 0 / 478.5 MB, free: 7.688 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.002496/0.1111, allocations: 0.9355 MB / 479.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1111, allocations: 8.031 kB / 479.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.1113, allocations: 64.38 kB / 479.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.1118, allocations: 371.1 kB / 479.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003803/0.1122, allocations: 275.7 kB / 480.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.1123, allocations: 40.38 kB / 480.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.1146, allocations: 0.8751 MB / 481 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.1146, allocations: 3.938 kB / 481 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.228e-05/0.1147, allocations: 16 kB / 481.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1147, allocations: 12 kB / 481.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003876/0.1186, allocations: 1.329 MB / 482.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002862/0.1214, allocations: 2.085 MB / 484.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/0.1248, allocations: 0.8989 MB / 485.4 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.1265, allocations: 0.552 MB / 485.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.15e-05/0.1266, allocations: 9.062 kB / 485.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.1266, allocations: 46.44 kB / 486 MB, free: 15.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.435e-06/0.1266, allocations: 0 / 486 MB, free: 15.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.09545/0.2221, allocations: 18.23 MB / 0.4924 GB, free: 13.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.2222, allocations: 90.23 kB / 0.4925 GB, free: 13.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005274/0.2227, allocations: 393.4 kB / 0.4929 GB, free: 12.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002012/0.223, allocations: 45.7 kB / 0.4929 GB, free: 12.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.2231, allocations: 217.1 kB / 0.4931 GB, free: 12.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004584/0.2236, allocations: 406 kB / 0.4935 GB, free: 12.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002577/0.2239, allocations: 101.7 kB / 0.4936 GB, free: 12.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.224, allocations: 370.8 kB / 0.494 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003991/0.228, allocations: 1.451 MB / 0.4954 GB, free: 10.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004126/0.2322, allocations: 1.611 MB / 0.4969 GB, free: 8.738 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007374/0.2396, allocations: 2.668 MB / 0.4996 GB, free: 6.027 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.2396, allocations: 4 kB / 0.4996 GB, free: 6.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008785/0.2484, allocations: 3.057 MB / 0.5025 GB, free: 2.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.2485, allocations: 8.031 kB / 0.5026 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.2485, allocations: 4 kB / 0.5026 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.2485, allocations: 8 kB / 0.5026 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/0.2515, allocations: 467.4 kB / 0.503 GB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.884e-05/0.2515, allocations: 23.8 kB / 0.503 GB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/0.2538, allocations: 279.7 kB / 0.5033 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/0.254, allocations: 39.98 kB / 0.5033 GB, free: 2.145 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.00054/0.2546, allocations: 237.5 kB / 0.5036 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.2548, allocations: 63.25 kB / 0.5036 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002973/0.2551, allocations: 104.7 kB / 0.5037 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.2551, allocations: 12 kB / 0.5037 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.2552, allocations: 3.938 kB / 0.5037 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.2552, allocations: 11.97 kB / 0.5037 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2454/0.5006, allocations: 5.548 MB / 0.5092 GB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.521e-05/0.5007, allocations: 21.56 kB / 0.5092 GB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/0.5025, allocations: 410.3 kB / 0.5096 GB, free: 49.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-05/0.5026, allocations: 28 kB / 0.5096 GB, free: 49.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/0.5027, allocations: 47.06 kB / 0.5096 GB, free: 49.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.113e-05/0.5028, allocations: 44.14 kB / 0.5097 GB, free: 49.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.609e-05/0.5028, allocations: 32.02 kB / 0.5097 GB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00832/0.5111, allocations: 3.423 MB / 0.5131 GB, free: 48.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005663/0.5117, allocations: 245.1 kB / 0.5133 GB, free: 48.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.512, allocations: 51.67 kB / 0.5133 GB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.5135, allocations: 249.7 kB / 0.5136 GB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004544/0.514, allocations: 217.9 kB / 0.5138 GB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.5141, allocations: 58.25 kB / 0.5138 GB, free: 48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003303/0.5144, allocations: 264.9 kB / 0.5141 GB, free: 47.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5145, allocations: 3.188 kB / 0.5141 GB, free: 47.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001164/0.5156, allocations: 228.7 kB / 0.5143 GB, free: 47.84 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.0002901/0.5159, allocations: 172.1 kB / 0.5145 GB, free: 47.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007272/0.5232, allocations: 2.562 MB / 0.517 GB, free: 46.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/0.5232, allocations: 3.344 kB / 0.517 GB, free: 46.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003743/0.527, allocations: 1.184 MB / 0.5181 GB, free: 46.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002332/0.5294, allocations: 161.5 kB / 0.5183 GB, free: 46.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.5334, allocations: 2.27 MB / 0.5205 GB, free: 44.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005605/0.534, allocations: 0.9187 MB / 0.5214 GB, free: 44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007506/0.5347, allocations: 80.75 kB / 0.5215 GB, free: 43.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.5347, allocations: 0 / 0.5215 GB, free: 43.98 MB / 382.1 MB Notification: Performance of Templates: time 0.01844/0.5532, allocations: 14.18 MB / 0.5353 GB, free: 32.83 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