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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001117/0.001116, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.1 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 72.7 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1222, allocations: 62.45 MB / 481.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003557/0.1258, allocations: 2.413 MB / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.1275, allocations: 0.9747 MB / 484.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.1276, allocations: 11.94 kB / 484.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003726/0.128, allocations: 115.2 kB / 485 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.1283, allocations: 95.31 kB / 485.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006607/0.1289, allocations: 287.5 kB / 485.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006927/0.1296, allocations: 0.7097 MB / 486.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.1298, allocations: 76.95 kB / 486.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003214/0.1301, allocations: 291 kB / 486.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.1305, allocations: 334.8 kB / 486.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.242e-05/0.1306, allocations: 60 kB / 486.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.736e-05/0.1307, allocations: 60 kB / 486.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001817/0.1309, allocations: 187.5 kB / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.1311, allocations: 242.7 kB / 487.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004853/0.1316, allocations: 0.545 MB / 487.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1316, allocations: 7.938 kB / 487.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1316, allocations: 0 / 487.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.1316, allocations: 0 / 487.8 MB, free: 14.11 MB / 366.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.002105/0.1337, allocations: 0.9354 MB / 488.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1338, allocations: 8.031 kB / 488.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.1339, allocations: 64.28 kB / 488.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.1345, allocations: 383.2 kB / 489.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003292/0.1348, allocations: 263.6 kB / 489.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.264e-05/0.1349, allocations: 44.38 kB / 489.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.1368, allocations: 0.8125 MB / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.1368, allocations: 3.906 kB / 490.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.1369, allocations: 16 kB / 490.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1369, allocations: 12 kB / 490.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003058/0.14, allocations: 1.196 MB / 491.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/0.1427, allocations: 2.039 MB / 493.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.1454, allocations: 0.8281 MB / 494.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.1467, allocations: 0.494 MB / 494.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.927e-05/0.1468, allocations: 4 kB / 494.9 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.1469, allocations: 42.5 kB / 495 MB, free: 6.707 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 4.017e-06/0.1469, allocations: 3.938 kB / 495 MB, free: 6.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.07981/0.2267, allocations: 15.75 MB / 0.4987 GB, free: 6.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/0.2268, allocations: 90.23 kB / 0.4988 GB, free: 6.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/0.2273, allocations: 393.4 kB / 0.4992 GB, free: 6.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/0.2274, allocations: 45.7 kB / 0.4992 GB, free: 6.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.2276, allocations: 221.1 kB / 0.4995 GB, free: 6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003457/0.228, allocations: 394.1 kB / 0.4998 GB, free: 5.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005272/0.2285, allocations: 202.8 kB / 0.5 GB, free: 5.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2286, allocations: 370.8 kB / 0.5004 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003256/0.2319, allocations: 1.349 MB / 0.5017 GB, free: 3.684 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00338/0.2353, allocations: 1.486 MB / 0.5031 GB, free: 2.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2188/0.4541, allocations: 2.442 MB / 0.5055 GB, free: 42.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.4541, allocations: 1.688 kB / 0.5055 GB, free: 42.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007258/0.4614, allocations: 2.828 MB / 0.5083 GB, free: 42.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.4615, allocations: 6.406 kB / 0.5083 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.4615, allocations: 3.938 kB / 0.5083 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.198e-05/0.4615, allocations: 9.094 kB / 0.5083 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002662/0.4642, allocations: 408.8 kB / 0.5087 GB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.062e-05/0.4642, allocations: 18.17 kB / 0.5087 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.4662, allocations: 218.2 kB / 0.5089 GB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/0.4664, allocations: 41.95 kB / 0.509 GB, free: 42.36 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.0004856/0.4669, allocations: 234.1 kB / 0.5092 GB, free: 42.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.4671, allocations: 62.64 kB / 0.5093 GB, free: 42.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002448/0.4674, allocations: 112 kB / 0.5094 GB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.4674, allocations: 11.8 kB / 0.5094 GB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.4674, allocations: 4.719 kB / 0.5094 GB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.4674, allocations: 11.06 kB / 0.5094 GB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.4784, allocations: 5.219 MB / 0.5145 GB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.137e-05/0.4785, allocations: 20.5 kB / 0.5145 GB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/0.48, allocations: 358.9 kB / 0.5148 GB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.458e-05/0.48, allocations: 27.27 kB / 0.5149 GB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.4801, allocations: 48.06 kB / 0.5149 GB, free: 39.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.329e-05/0.4802, allocations: 41.05 kB / 0.515 GB, free: 39.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.101e-05/0.4802, allocations: 38.14 kB / 0.515 GB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006635/0.4868, allocations: 3.088 MB / 0.518 GB, free: 37.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004779/0.4874, allocations: 238.1 kB / 0.5182 GB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.4875, allocations: 51.69 kB / 0.5183 GB, free: 37.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.4887, allocations: 190.5 kB / 0.5185 GB, free: 37.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004357/0.4892, allocations: 213.9 kB / 0.5187 GB, free: 37.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.4893, allocations: 57.48 kB / 0.5187 GB, free: 37.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002941/0.4896, allocations: 270.2 kB / 0.519 GB, free: 37.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4896, allocations: 1.125 kB / 0.519 GB, free: 37.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4906, allocations: 232 kB / 0.5192 GB, free: 37.39 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.0002065/0.4908, allocations: 164.2 kB / 0.5194 GB, free: 37.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005783/0.4966, allocations: 2.39 MB / 0.5217 GB, free: 36.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.569e-05/0.4967, allocations: 8.031 kB / 0.5217 GB, free: 36.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003081/0.4997, allocations: 1.07 MB / 0.5227 GB, free: 36.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.5011, allocations: 151.7 kB / 0.5229 GB, free: 36.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/0.5044, allocations: 1.949 MB / 0.5248 GB, free: 34.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.5049, allocations: 0.9234 MB / 0.5257 GB, free: 33.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.5059, allocations: 203.4 kB / 0.5259 GB, free: 33.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000556/0.5065, allocations: 75.86 kB / 0.526 GB, free: 33.59 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5065, allocations: 0 / 0.526 GB, free: 33.59 MB / 382.1 MB Notification: Performance of Templates: time 0.02028/0.5268, allocations: 16.59 MB / 0.5422 GB, free: 18.94 MB / 382.1 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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches