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.001316/0.001316, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001303, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2134/0.2134, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 75.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.328, allocations: 62.44 MB / 0.5305 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003217/0.3312, allocations: 2.418 MB / 0.5329 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.3327, allocations: 0.966 MB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.3329, allocations: 9.75 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003369/0.3332, allocations: 119.8 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.3334, allocations: 95.98 kB / 0.534 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005661/0.334, allocations: 296.8 kB / 0.5343 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006372/0.3347, allocations: 0.7115 MB / 0.535 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.3348, allocations: 67.2 kB / 0.5351 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.3351, allocations: 297 kB / 0.5353 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.3355, allocations: 332.7 kB / 0.5357 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.618e-05/0.3356, allocations: 63.97 kB / 0.5357 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.3357, allocations: 60.31 kB / 0.5358 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.3359, allocations: 196.1 kB / 0.536 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.3361, allocations: 235.7 kB / 0.5362 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004736/0.3366, allocations: 0.5483 MB / 0.5367 GB, free: 8.871 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3366, allocations: 4 kB / 0.5367 GB, free: 8.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3366, allocations: 0 / 0.5367 GB, free: 8.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3366, allocations: 1 kB / 0.5367 GB, free: 8.867 MB / 398.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.00215/0.3387, allocations: 0.9428 MB / 0.5377 GB, free: 8.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.3388, allocations: 9.062 kB / 0.5377 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.804e-05/0.3389, allocations: 91.52 kB / 0.5378 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.754e-05/0.339, allocations: 61.38 kB / 0.5378 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.3396, allocations: 390 kB / 0.5382 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003416/0.3399, allocations: 258 kB / 0.5384 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/0.34, allocations: 47.22 kB / 0.5385 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.342, allocations: 0.8131 MB / 0.5393 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.3421, allocations: 1.531 kB / 0.5393 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.3421, allocations: 16.38 kB / 0.5393 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3421, allocations: 9.938 kB / 0.5393 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003565/0.3457, allocations: 1.197 MB / 0.5405 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002728/0.3484, allocations: 2.019 MB / 0.5424 GB, free: 4.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.3515, allocations: 0.8297 MB / 0.5432 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.3531, allocations: 0.4915 MB / 0.5437 GB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.875e-05/0.3532, allocations: 9.766 kB / 0.5437 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3532, allocations: 49.81 kB / 0.5438 GB, free: 3.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.585e-06/0.3532, allocations: 0 / 0.5438 GB, free: 3.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08869/0.4419, allocations: 15.75 MB / 0.5592 GB, free: 4.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.442, allocations: 98.17 kB / 0.5593 GB, free: 4.027 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004584/0.4425, allocations: 393.4 kB / 0.5596 GB, free: 3.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.4426, allocations: 45.7 kB / 0.5597 GB, free: 3.578 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.4428, allocations: 221 kB / 0.5599 GB, free: 3.355 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003632/0.4432, allocations: 394.1 kB / 0.5603 GB, free: 2.965 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005481/0.4437, allocations: 202.8 kB / 0.5605 GB, free: 2.758 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4439, allocations: 370.8 kB / 0.5608 GB, free: 2.387 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003679/0.4475, allocations: 1.342 MB / 0.5621 GB, free: 1.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003808/0.4514, allocations: 1.49 MB / 0.5636 GB, free: 15.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006854/0.4582, allocations: 2.457 MB / 0.566 GB, free: 13.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4583, allocations: 0 / 0.566 GB, free: 13.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007877/0.4662, allocations: 2.83 MB / 0.5687 GB, free: 10.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.4662, allocations: 8 kB / 0.5687 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.4662, allocations: 7.938 kB / 0.5688 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.4663, allocations: 8.25 kB / 0.5688 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/0.469, allocations: 403.4 kB / 0.5691 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.407e-05/0.469, allocations: 19.94 kB / 0.5692 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/0.471, allocations: 215.7 kB / 0.5694 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.4712, allocations: 43.98 kB / 0.5694 GB, free: 9.48 MB / 430.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.0004654/0.4717, allocations: 226.9 kB / 0.5696 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.4719, allocations: 63.25 kB / 0.5697 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002422/0.4721, allocations: 104.7 kB / 0.5698 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.4721, allocations: 12 kB / 0.5698 GB, free: 9.074 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.698e-05/0.4722, allocations: 7.938 kB / 0.5698 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.362e-05/0.4722, allocations: 7.969 kB / 0.5698 GB, free: 9.059 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/0.4837, allocations: 5.224 MB / 0.5749 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.343e-05/0.4838, allocations: 28.06 kB / 0.5749 GB, free: 3.465 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/0.4853, allocations: 355.3 kB / 0.5753 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-05/0.4854, allocations: 28 kB / 0.5753 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.895e-05/0.4854, allocations: 44 kB / 0.5754 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.933e-05/0.4855, allocations: 43.84 kB / 0.5754 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-05/0.4855, allocations: 31.88 kB / 0.5754 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007302/0.4928, allocations: 3.09 MB / 0.5784 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.4933, allocations: 236.3 kB / 0.5787 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.4934, allocations: 43.98 kB / 0.5787 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.4948, allocations: 195.8 kB / 0.5789 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000437/0.4952, allocations: 227.2 kB / 0.5791 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.4953, allocations: 56 kB / 0.5792 GB, free: 14.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003222/0.4956, allocations: 267.1 kB / 0.5794 GB, free: 14.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4956, allocations: 0 / 0.5794 GB, free: 14.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001001/0.4967, allocations: 228 kB / 0.5796 GB, free: 14.33 MB / 446.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.008153/0.5048, allocations: 3.684 MB / 0.5832 GB, free: 10.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006896/0.5117, allocations: 2.387 MB / 0.5856 GB, free: 7.957 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.135e-05/0.5118, allocations: 4 kB / 0.5856 GB, free: 7.953 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003523/0.5153, allocations: 1.067 MB / 0.5866 GB, free: 6.891 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.5169, allocations: 161.1 kB / 0.5868 GB, free: 6.738 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02919/0.5461, allocations: 12.35 MB / 0.5988 GB, free: 9.652 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006636/0.5468, allocations: 0.9319 MB / 0.5997 GB, free: 8.691 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.548, allocations: 202 kB / 0.5999 GB, free: 8.492 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007361/0.5487, allocations: 219.4 kB / 0.6001 GB, free: 8.277 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5487, allocations: 4 kB / 0.6001 GB, free: 8.273 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04708/0.5958, allocations: 22.22 MB / 0.6218 GB, free: 2.105 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.908/9.503, allocations: 14.08 kB / 0.6219 GB, free: 2.098 MB / 478.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) "" Variables in the reference:time,integrator.y,integrator1.y,integrator2.y,integrator3.y Variables in the result:der(integrator.y),der(integrator1.y),der(integrator2.y),der(integrator3.y),diff1.u1,diff1.u2,diff1.y,diff2.u1,diff2.u2,diff2.y,integrator.initType,integrator.k,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,integrator1.initType,integrator1.k,integrator1.u,integrator1.use_reset,integrator1.use_set,integrator1.y,integrator1.y_start,integrator2.initType,integrator2.k,integrator2.u,integrator2.use_reset,integrator2.use_set,integrator2.y,integrator2.y_start,integrator3.initType,integrator3.k,integrator3.u,integrator3.use_reset,integrator3.use_set,integrator3.y,integrator3.y_start,kinematicPTP1a.deltaq[1],kinematicPTP1a.nout,kinematicPTP1a.qd_max[1],kinematicPTP1a.qdd_max[1],kinematicPTP1a.startTime,kinematicPTP1a.y[1],kinematicPTP1b.endTime,kinematicPTP1b.moving[1],kinematicPTP1b.nout,kinematicPTP1b.q[1],kinematicPTP1b.q_begin[1],kinematicPTP1b.q_end[1],kinematicPTP1b.qd[1],kinematicPTP1b.qd_max[1],kinematicPTP1b.qdd[1],kinematicPTP1b.qdd_max[1],kinematicPTP1b.startTime,kinematicPTP2a.deltaq[1],kinematicPTP2a.nout,kinematicPTP2a.qd_max[1],kinematicPTP2a.qdd_max[1],kinematicPTP2a.startTime,kinematicPTP2a.y[1],kinematicPTP2b.endTime,kinematicPTP2b.moving[1],kinematicPTP2b.nout,kinematicPTP2b.q[1],kinematicPTP2b.q_begin[1],kinematicPTP2b.q_end[1],kinematicPTP2b.qd[1],kinematicPTP2b.qd_max[1],kinematicPTP2b.qdd[1],kinematicPTP2b.qdd_max[1],kinematicPTP2b.startTime,time