Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009209/0.000921, allocations: 196.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007551/0.0007552, allocations: 103.1 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2763/0.2763, allocations: 45 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000226/0.0002261, allocations: 7.984 kB / 470.8 MB, free: 7.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2284, allocations: 63.09 MB / 0.5214 GB, free: 38.33 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.001657/0.2301, allocations: 2.006 MB / 0.5233 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.2312, allocations: 1.087 MB / 0.5244 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.2313, allocations: 6.844 kB / 0.5244 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002502/0.2316, allocations: 102.8 kB / 0.5245 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.2318, allocations: 77.56 kB / 0.5246 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.2322, allocations: 256.8 kB / 0.5248 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004218/0.2326, allocations: 0.6839 MB / 0.5255 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.2327, allocations: 60.59 kB / 0.5255 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.233, allocations: 276 kB / 0.5258 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.2332, allocations: 304.1 kB / 0.5261 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.2333, allocations: 31.53 kB / 0.5261 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.682e-05/0.2333, allocations: 31.38 kB / 0.5261 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.2335, allocations: 152.1 kB / 0.5263 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.2336, allocations: 244.9 kB / 0.5265 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.2339, allocations: 0.5046 MB / 0.527 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.758e-06/0.2339, allocations: 0 / 0.527 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2339, allocations: 0 / 0.527 GB, free: 34.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2339, allocations: 4 kB / 0.527 GB, free: 34.87 MB / 378.7 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.001626/0.2356, allocations: 0.9247 MB / 0.5279 GB, free: 34.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/0.2356, allocations: 11.66 kB / 0.5279 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.148e-05/0.2357, allocations: 62.94 kB / 0.528 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.236, allocations: 368.2 kB / 0.5283 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/0.2363, allocations: 277.7 kB / 0.5286 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.57e-05/0.2364, allocations: 47.19 kB / 0.5287 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.238, allocations: 0.8641 MB / 0.5295 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.238, allocations: 3.375 kB / 0.5295 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.844e-05/0.2381, allocations: 17.47 kB / 0.5295 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2381, allocations: 10.44 kB / 0.5295 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/0.2409, allocations: 1.328 MB / 0.5308 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.243, allocations: 2.068 MB / 0.5328 GB, free: 31.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/0.2456, allocations: 0.8962 MB / 0.5337 GB, free: 31.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.2468, allocations: 0.555 MB / 0.5343 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.025e-05/0.2469, allocations: 8.438 kB / 0.5343 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.2469, allocations: 45.62 kB / 0.5343 GB, free: 31.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 1.973e-06/0.2469, allocations: 0 / 0.5343 GB, free: 31.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.07649/0.3234, allocations: 18.22 MB / 0.5521 GB, free: 23.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.3235, allocations: 90.23 kB / 0.5522 GB, free: 23.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/0.3238, allocations: 389.4 kB / 0.5526 GB, free: 22.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.3239, allocations: 45.7 kB / 0.5526 GB, free: 22.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.956e-05/0.324, allocations: 229 kB / 0.5528 GB, free: 22.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.3242, allocations: 398.2 kB / 0.5532 GB, free: 21.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.3244, allocations: 20 kB / 0.5532 GB, free: 21.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.3244, allocations: 378.7 kB / 0.5536 GB, free: 21.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/0.3273, allocations: 1.447 MB / 0.555 GB, free: 20.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002923/0.3303, allocations: 1.607 MB / 0.5566 GB, free: 18.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005221/0.3355, allocations: 2.656 MB / 0.5592 GB, free: 15.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.3355, allocations: 4 kB / 0.5592 GB, free: 15.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006/0.3415, allocations: 3.049 MB / 0.5621 GB, free: 12.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3416, allocations: 8 kB / 0.5622 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.3416, allocations: 4 kB / 0.5622 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.3416, allocations: 8 kB / 0.5622 GB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/0.344, allocations: 471.6 kB / 0.5626 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.3441, allocations: 11.94 kB / 0.5626 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.3458, allocations: 275.7 kB / 0.5629 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.346, allocations: 47.98 kB / 0.5629 GB, free: 11.92 MB / 378.7 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.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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.0003374/0.3463, allocations: 233.5 kB / 0.5632 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.3465, allocations: 63.16 kB / 0.5632 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.3466, allocations: 112.7 kB / 0.5633 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3467, allocations: 12 kB / 0.5633 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3467, allocations: 3.938 kB / 0.5633 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3467, allocations: 3.984 kB / 0.5633 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008896/0.3556, allocations: 5.543 MB / 0.5688 GB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.3556, allocations: 20.97 kB / 0.5688 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.3569, allocations: 415.4 kB / 0.5692 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/0.3569, allocations: 28 kB / 0.5692 GB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.413e-05/0.357, allocations: 47.94 kB / 0.5692 GB, free: 5.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.641e-05/0.357, allocations: 39.86 kB / 0.5693 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.23e-05/0.357, allocations: 31.88 kB / 0.5693 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005412/0.3624, allocations: 3.419 MB / 0.5727 GB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.3627, allocations: 240.3 kB / 0.5729 GB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3628, allocations: 51.98 kB / 0.5729 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.3639, allocations: 251.8 kB / 0.5732 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/0.3642, allocations: 223.2 kB / 0.5734 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-05/0.3643, allocations: 56 kB / 0.5734 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00018/0.3645, allocations: 263.1 kB / 0.5737 GB, free: 236 kB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3645, allocations: 0 / 0.5737 GB, free: 236 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007466/0.3652, allocations: 236 kB / 0.5739 GB, free: 0 / 378.7 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.0001978/0.3654, allocations: 176.5 kB / 0.5741 GB, free: 15.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005605/0.3711, allocations: 2.563 MB / 0.5766 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3711, allocations: 0 / 0.5766 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002948/0.374, allocations: 1.176 MB / 0.5777 GB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/0.3758, allocations: 165.3 kB / 0.5779 GB, free: 11.92 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.379, allocations: 2.207 MB / 0.5801 GB, free: 9.402 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.3795, allocations: 0.9324 MB / 0.581 GB, free: 8.441 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001166/0.3807, allocations: 194.2 kB / 0.5811 GB, free: 8.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005489/0.3812, allocations: 67.42 kB / 0.5812 GB, free: 8.188 MB / 394.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3812, allocations: 0 / 0.5812 GB, free: 8.188 MB / 394.7 MB Notification: Performance of Templates: time 0.01975/0.401, allocations: 15.06 MB / 0.5959 GB, free: 9.133 MB / 410.7 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches