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.000735/0.0007352, allocations: 97.05 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008589/0.000859, allocations: 204.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1797/0.1797, allocations: 46.19 MB / 345.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002477/0.0002478, allocations: 11.98 kB / 419.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09056/0.09083, allocations: 63.56 MB / 483.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002115/0.09296, allocations: 2.083 MB / 485.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.09431, allocations: 0.9515 MB / 486.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.09444, allocations: 7.875 kB / 486.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002807/0.09473, allocations: 103.5 kB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.09494, allocations: 75.58 kB / 486.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.09543, allocations: 251.7 kB / 486.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005763/0.09601, allocations: 0.6743 MB / 487.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.09617, allocations: 81.25 kB / 487.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.09644, allocations: 263 kB / 487.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.09678, allocations: 314.7 kB / 488 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.09685, allocations: 32 kB / 488 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.031e-05/0.09692, allocations: 28 kB / 488 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.09708, allocations: 167.5 kB / 488.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.09728, allocations: 248.5 kB / 488.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003909/0.09768, allocations: 0.4981 MB / 488.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.09769, allocations: 0 / 488.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09769, allocations: 0 / 488.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.0977, allocations: 0 / 488.9 MB, free: 14.31 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.00206/0.09977, allocations: 0.9162 MB / 489.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.09981, allocations: 12.88 kB / 489.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.728e-05/0.09991, allocations: 90.66 kB / 489.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.899e-05/0.1, allocations: 68.28 kB / 490 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.1004, allocations: 375.1 kB / 490.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.1008, allocations: 275.7 kB / 490.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-05/0.1009, allocations: 40.38 kB / 490.7 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.103, allocations: 0.871 MB / 491.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.1031, allocations: 3.938 kB / 491.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.767e-05/0.1031, allocations: 16 kB / 491.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1031, allocations: 12 kB / 491.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003766/0.1069, allocations: 1.333 MB / 492.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.1095, allocations: 2.07 MB / 495 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/0.1128, allocations: 0.9065 MB / 495.9 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/0.1145, allocations: 0.5453 MB / 496.4 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.457e-05/0.1145, allocations: 8 kB / 496.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.1146, allocations: 42.5 kB / 496.5 MB, free: 6.457 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 1.904e-06/0.1146, allocations: 0 / 496.5 MB, free: 6.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.09624/0.2108, allocations: 18.23 MB / 0.5027 GB, free: 4.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.2109, allocations: 94.17 kB / 0.5027 GB, free: 3.938 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.2113, allocations: 393.5 kB / 0.5031 GB, free: 3.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/0.2114, allocations: 45.7 kB / 0.5032 GB, free: 3.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.2116, allocations: 217.1 kB / 0.5034 GB, free: 3.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/0.2119, allocations: 398.1 kB / 0.5037 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.2122, allocations: 109.6 kB / 0.5039 GB, free: 2.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2123, allocations: 370.8 kB / 0.5042 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003928/0.2162, allocations: 1.455 MB / 0.5056 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1613/0.3776, allocations: 1.602 MB / 0.5072 GB, free: 42.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007329/0.3849, allocations: 2.664 MB / 0.5098 GB, free: 42.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.385, allocations: 1.344 kB / 0.5098 GB, free: 42.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008078/0.393, allocations: 3.062 MB / 0.5128 GB, free: 40.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.3931, allocations: 6.609 kB / 0.5128 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3931, allocations: 3.594 kB / 0.5128 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.3931, allocations: 9.016 kB / 0.5128 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002909/0.396, allocations: 468.2 kB / 0.5132 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.3961, allocations: 20.83 kB / 0.5133 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/0.3982, allocations: 280.1 kB / 0.5135 GB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.3984, allocations: 41.02 kB / 0.5136 GB, free: 40.88 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.0004388/0.3988, allocations: 235.1 kB / 0.5138 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.399, allocations: 65 kB / 0.5139 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.3993, allocations: 107.7 kB / 0.514 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.3993, allocations: 19.97 kB / 0.514 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3993, allocations: 4.25 kB / 0.514 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.3994, allocations: 6.797 kB / 0.514 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.411, allocations: 5.548 MB / 0.5194 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.256e-05/0.411, allocations: 20.16 kB / 0.5194 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/0.4126, allocations: 413.5 kB / 0.5198 GB, free: 38.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-05/0.4127, allocations: 28.06 kB / 0.5199 GB, free: 38.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.327e-05/0.4128, allocations: 47.64 kB / 0.5199 GB, free: 38.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.774e-05/0.4128, allocations: 39.86 kB / 0.5199 GB, free: 38.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.962e-05/0.4128, allocations: 37.66 kB / 0.52 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007362/0.4202, allocations: 3.427 MB / 0.5233 GB, free: 36.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.4205, allocations: 243.5 kB / 0.5236 GB, free: 36.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.4206, allocations: 50.47 kB / 0.5236 GB, free: 36.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.4219, allocations: 248.8 kB / 0.5238 GB, free: 36.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/0.4223, allocations: 220.8 kB / 0.524 GB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.4224, allocations: 59.8 kB / 0.5241 GB, free: 35.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.4226, allocations: 261.4 kB / 0.5244 GB, free: 35.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4226, allocations: 0 / 0.5244 GB, free: 35.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009713/0.4236, allocations: 227.9 kB / 0.5246 GB, free: 35.77 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.007374/0.431, allocations: 4.009 MB / 0.5285 GB, free: 33.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006066/0.4371, allocations: 2.568 MB / 0.531 GB, free: 30.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.4371, allocations: 1.75 kB / 0.531 GB, free: 30.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003105/0.4402, allocations: 1.177 MB / 0.5321 GB, free: 29.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.4422, allocations: 166.3 kB / 0.5323 GB, free: 29.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/0.4657, allocations: 13.29 MB / 0.5453 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.466, allocations: 0.9281 MB / 0.5462 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001165/0.4672, allocations: 217.1 kB / 0.5464 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000659/0.4678, allocations: 215.4 kB / 0.5466 GB, free: 14.28 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4678, allocations: 4 kB / 0.5466 GB, free: 14.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.4956, allocations: 19.81 MB / 0.5659 GB, free: 10.58 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/0.4958, allocations: 187.8 kB / 0.5661 GB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.242/2.738, allocations: 0 / 0.5661 GB, free: 10.32 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