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.0009995/0.0009996, allocations: 93.3 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 199.7 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.7 MB / 246.8 MB, free: 11.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.18 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002929, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1126, allocations: 63.57 MB / 483.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002828/0.1155, allocations: 2.083 MB / 485.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1173, allocations: 0.9515 MB / 486.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002788/0.1176, allocations: 7.875 kB / 486.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004018/0.118, allocations: 103.5 kB / 486.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002973/0.1183, allocations: 79.58 kB / 486.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007028/0.119, allocations: 243.7 kB / 486.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007994/0.1198, allocations: 0.6782 MB / 487.2 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.12, allocations: 69.05 kB / 487.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/0.1205, allocations: 263 kB / 487.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004447/0.1209, allocations: 318.7 kB / 487.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.121, allocations: 32 kB / 487.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.1211, allocations: 28 kB / 487.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.1213, allocations: 167.5 kB / 488.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002147/0.1215, allocations: 244.4 kB / 488.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004317/0.122, allocations: 0.5023 MB / 488.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.122, allocations: 0 / 488.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.122, allocations: 0 / 488.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.122, allocations: 0 / 488.8 MB, free: 14.39 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.002229/0.1242, allocations: 0.9162 MB / 489.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1243, allocations: 12.88 kB / 489.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.1244, allocations: 60.38 kB / 489.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.1249, allocations: 383 kB / 490.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003726/0.1253, allocations: 271.7 kB / 490.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.729e-05/0.1254, allocations: 40.38 kB / 490.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002256/0.1276, allocations: 0.8712 MB / 491.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.1277, allocations: 3.938 kB / 491.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.1277, allocations: 16 kB / 491.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1278, allocations: 15.94 kB / 491.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003835/0.1316, allocations: 1.329 MB / 492.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002891/0.1345, allocations: 2.07 MB / 494.8 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/0.1378, allocations: 0.8996 MB / 495.7 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.1396, allocations: 0.5603 MB / 496.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.167e-05/0.1397, allocations: 11.98 kB / 496.3 MB, free: 6.672 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.1397, allocations: 42.5 kB / 496.3 MB, free: 6.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.555e-06/0.1397, allocations: 3.938 kB / 496.3 MB, free: 6.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.09971/0.2394, allocations: 18.23 MB / 0.5025 GB, free: 4.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/0.2395, allocations: 90.23 kB / 0.5026 GB, free: 4.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.24, allocations: 393.3 kB / 0.5029 GB, free: 3.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002024/0.2402, allocations: 45.7 kB / 0.503 GB, free: 3.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.2404, allocations: 217.1 kB / 0.5032 GB, free: 3.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.2408, allocations: 398.2 kB / 0.5036 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/0.2411, allocations: 97.66 kB / 0.5037 GB, free: 2.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2413, allocations: 378.8 kB / 0.504 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004151/0.2454, allocations: 1.455 MB / 0.5054 GB, free: 1.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2311/0.4766, allocations: 1.599 MB / 0.507 GB, free: 42.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008148/0.4848, allocations: 2.671 MB / 0.5096 GB, free: 41.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.4848, allocations: 5.047 kB / 0.5096 GB, free: 41.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008996/0.4938, allocations: 3.059 MB / 0.5126 GB, free: 40.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.4939, allocations: 6.031 kB / 0.5126 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.4939, allocations: 5.188 kB / 0.5126 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.135e-05/0.494, allocations: 8.062 kB / 0.5126 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00308/0.497, allocations: 471.8 kB / 0.5131 GB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-05/0.4971, allocations: 16.59 kB / 0.5131 GB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002368/0.4995, allocations: 278.4 kB / 0.5134 GB, free: 40.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.4997, allocations: 43.28 kB / 0.5134 GB, free: 40.76 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.0005643/0.5002, allocations: 229.2 kB / 0.5136 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.5005, allocations: 62.31 kB / 0.5137 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002967/0.5008, allocations: 111.4 kB / 0.5138 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.5008, allocations: 11.97 kB / 0.5138 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.5008, allocations: 4.844 kB / 0.5138 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.5008, allocations: 6.625 kB / 0.5138 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/0.515, allocations: 5.546 MB / 0.5192 GB, free: 37.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.282e-05/0.5151, allocations: 23.14 kB / 0.5192 GB, free: 37.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001999/0.5171, allocations: 412.4 kB / 0.5196 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.767e-05/0.5172, allocations: 27.06 kB / 0.5197 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.5174, allocations: 48.11 kB / 0.5197 GB, free: 37.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.339e-05/0.5174, allocations: 40.12 kB / 0.5198 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.584e-05/0.5175, allocations: 40.45 kB / 0.5198 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008797/0.5263, allocations: 3.427 MB / 0.5231 GB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005382/0.5268, allocations: 245 kB / 0.5234 GB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.527, allocations: 53.92 kB / 0.5234 GB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.5285, allocations: 251.7 kB / 0.5237 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/0.5289, allocations: 215 kB / 0.5239 GB, free: 35.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.441e-05/0.5289, allocations: 57.75 kB / 0.5239 GB, free: 35.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002876/0.5292, allocations: 261.3 kB / 0.5242 GB, free: 35.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5292, allocations: 0 / 0.5242 GB, free: 35.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00113/0.5304, allocations: 232 kB / 0.5244 GB, free: 35.66 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.0002368/0.5306, allocations: 172.3 kB / 0.5246 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006924/0.5376, allocations: 2.568 MB / 0.5271 GB, free: 34.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.009e-05/0.5376, allocations: 3.812 kB / 0.5271 GB, free: 34.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003562/0.5412, allocations: 1.179 MB / 0.5282 GB, free: 34.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/0.5435, allocations: 165.5 kB / 0.5284 GB, free: 33.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/0.5472, allocations: 2.225 MB / 0.5305 GB, free: 31.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.5477, allocations: 0.9324 MB / 0.5315 GB, free: 30.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001338/0.549, allocations: 202.9 kB / 0.5317 GB, free: 30.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000544/0.5496, allocations: 67.42 kB / 0.5317 GB, free: 30.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5496, allocations: 0 / 0.5317 GB, free: 30.2 MB / 382.1 MB Notification: Performance of Templates: time 0.02096/0.5705, allocations: 15.01 MB / 0.5464 GB, free: 15.22 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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches