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: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001013/0.001013, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2151/0.2151, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 71.91 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1297, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004171/0.1339, allocations: 2.404 MB / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.1357, allocations: 0.9786 MB / 483.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.1359, allocations: 11.94 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003801/0.1363, allocations: 115.2 kB / 483.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.1366, allocations: 103.3 kB / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006624/0.1372, allocations: 275.5 kB / 484 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007307/0.138, allocations: 0.7173 MB / 484.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.1381, allocations: 73.31 kB / 484.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003287/0.1385, allocations: 303 kB / 485.1 MB, free: 216 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004009/0.1389, allocations: 326.8 kB / 485.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.315e-05/0.139, allocations: 60 kB / 485.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.411e-05/0.1391, allocations: 60 kB / 485.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.1393, allocations: 183.5 kB / 485.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002125/0.1395, allocations: 242.7 kB / 485.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005165/0.14, allocations: 0.5412 MB / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.14, allocations: 0 / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.1401, allocations: 0 / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.1401, allocations: 0 / 486.5 MB, free: 14.81 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.00228/0.1424, allocations: 0.9431 MB / 487.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1424, allocations: 12.03 kB / 487.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.611e-05/0.1425, allocations: 86.72 kB / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.1426, allocations: 60.38 kB / 487.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.1431, allocations: 371.2 kB / 487.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003476/0.1435, allocations: 267.6 kB / 488.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.456e-05/0.1436, allocations: 44.28 kB / 488.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.1456, allocations: 0.8085 MB / 489.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.1456, allocations: 0 / 489.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-05/0.1457, allocations: 16 kB / 489.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1457, allocations: 12 kB / 489.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00353/0.1493, allocations: 1.2 MB / 490.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.1521, allocations: 2.046 MB / 492.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003008/0.1552, allocations: 0.8275 MB / 493.2 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/0.1567, allocations: 497.8 kB / 493.6 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.762e-05/0.1568, allocations: 8 kB / 493.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.1569, allocations: 42.5 kB / 493.7 MB, free: 7.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.324e-06/0.1569, allocations: 0 / 493.7 MB, free: 7.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0853/0.2422, allocations: 15.75 MB / 0.4975 GB, free: 7.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.2423, allocations: 94.17 kB / 0.4976 GB, free: 7.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004407/0.2427, allocations: 389.5 kB / 0.498 GB, free: 6.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.2429, allocations: 45.7 kB / 0.498 GB, free: 6.832 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.243, allocations: 221 kB / 0.4982 GB, free: 6.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003646/0.2434, allocations: 402.1 kB / 0.4986 GB, free: 6.211 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005188/0.2439, allocations: 190.9 kB / 0.4988 GB, free: 6.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2441, allocations: 378.8 kB / 0.4991 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003531/0.2476, allocations: 1.345 MB / 0.5005 GB, free: 4.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/0.2514, allocations: 1.493 MB / 0.5019 GB, free: 2.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006753/0.2582, allocations: 2.441 MB / 0.5043 GB, free: 276 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.2582, allocations: 4 kB / 0.5043 GB, free: 272 kB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2084/0.4666, allocations: 2.823 MB / 0.5071 GB, free: 43.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.4666, allocations: 8.719 kB / 0.5071 GB, free: 43.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.4667, allocations: 3.188 kB / 0.5071 GB, free: 43.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.361e-05/0.4667, allocations: 9.594 kB / 0.5071 GB, free: 43.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/0.4696, allocations: 408 kB / 0.5075 GB, free: 43.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.561e-05/0.4696, allocations: 17.09 kB / 0.5075 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.4717, allocations: 221.2 kB / 0.5077 GB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.4718, allocations: 38.78 kB / 0.5077 GB, free: 43.27 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.0005134/0.4724, allocations: 237.6 kB / 0.508 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002397/0.4726, allocations: 63.81 kB / 0.508 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000245/0.4729, allocations: 108.4 kB / 0.5081 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.4729, allocations: 16.09 kB / 0.5081 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4729, allocations: 1.125 kB / 0.5081 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.4729, allocations: 5.766 kB / 0.5081 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.484, allocations: 5.23 MB / 0.5133 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/0.4841, allocations: 22.03 kB / 0.5133 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.4856, allocations: 354.2 kB / 0.5136 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.66e-05/0.4856, allocations: 27.91 kB / 0.5136 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/0.4857, allocations: 47.19 kB / 0.5137 GB, free: 40.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.719e-05/0.4858, allocations: 40.11 kB / 0.5137 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.059e-05/0.4858, allocations: 41.31 kB / 0.5138 GB, free: 40.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007102/0.4929, allocations: 3.085 MB / 0.5168 GB, free: 38.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.4933, allocations: 238.8 kB / 0.517 GB, free: 38.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.4934, allocations: 51.16 kB / 0.5171 GB, free: 38.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.4948, allocations: 190.9 kB / 0.5172 GB, free: 38.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004303/0.4952, allocations: 213.9 kB / 0.5174 GB, free: 38.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.911e-05/0.4953, allocations: 63.92 kB / 0.5175 GB, free: 38.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.4956, allocations: 267.9 kB / 0.5178 GB, free: 38.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4956, allocations: 0 / 0.5178 GB, free: 38.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001083/0.4967, allocations: 228.4 kB / 0.518 GB, free: 38.3 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.007212/0.5039, allocations: 3.681 MB / 0.5216 GB, free: 36.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005991/0.5099, allocations: 2.402 MB / 0.5239 GB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.514e-05/0.5099, allocations: 3.812 kB / 0.5239 GB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002996/0.5129, allocations: 1.07 MB / 0.525 GB, free: 34.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.5143, allocations: 145 kB / 0.5251 GB, free: 34.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02144/0.5358, allocations: 12.48 MB / 0.5373 GB, free: 22.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.5362, allocations: 0.932 MB / 0.5382 GB, free: 21.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001086/0.5372, allocations: 209.4 kB / 0.5384 GB, free: 21.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005892/0.5378, allocations: 219.4 kB / 0.5386 GB, free: 21.26 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5379, allocations: 0 / 0.5386 GB, free: 21.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04189/0.5797, allocations: 21.55 MB / 0.5596 GB, free: 15.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.249/9.829, allocations: 10.97 kB / 0.5597 GB, free: 15.75 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > 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