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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.149/1.149, allocations: 227.2 MB / 245 MB, free: 5.777 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000866/0.000866, allocations: 103.3 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2728/0.2728, allocations: 45.23 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002232/0.0002232, allocations: 4 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2321, allocations: 63.25 MB / 0.5192 GB, free: 37.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09093/0.323, allocations: 90.32 MB / 0.6074 GB, free: 13.14 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001711/0.3232, allocations: 63.97 kB / 0.6074 GB, free: 13.08 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0341/0.3573, allocations: 11.93 MB / 0.6191 GB, free: 1.117 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3574, allocations: 0 / 0.6191 GB, free: 1.117 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.547e-05/0.3574, allocations: 11.98 kB / 0.6191 GB, free: 1.105 MB / 426.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.00198/0.3594, allocations: 0.9468 MB / 0.62 GB, free: 112 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.3594, allocations: 8.031 kB / 0.62 GB, free: 104 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.3596, allocations: 60.12 kB / 0.6201 GB, free: 44 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.3601, allocations: 366.2 kB / 0.6204 GB, free: 15.65 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003321/0.3604, allocations: 275.1 kB / 0.6207 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.252e-05/0.3605, allocations: 44 kB / 0.6207 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002001/0.3625, allocations: 0.871 MB / 0.6216 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.3625, allocations: 11.84 kB / 0.6216 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.77e-05/0.3626, allocations: 19.94 kB / 0.6216 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.3626, allocations: 8 kB / 0.6216 GB, free: 14.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003439/0.3661, allocations: 1.345 MB / 0.6229 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.3687, allocations: 2.088 MB / 0.625 GB, free: 10.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.3714, allocations: 0.8624 MB / 0.6258 GB, free: 9.953 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.169e-05/0.3715, allocations: 12.5 kB / 0.6258 GB, free: 9.941 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.3715, allocations: 39.12 kB / 0.6259 GB, free: 9.895 MB / 442.7 MB Notification: Performance of pre-optimization done (n=66): time 1.834e-06/0.3715, allocations: 0 / 0.6259 GB, free: 9.895 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.08781/0.4593, allocations: 18.29 MB / 0.6437 GB, free: 7.422 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.4594, allocations: 98.16 kB / 0.6438 GB, free: 7.305 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004038/0.4598, allocations: 372.6 kB / 0.6442 GB, free: 6.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.46, allocations: 45.7 kB / 0.6442 GB, free: 6.879 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.4601, allocations: 217.1 kB / 0.6444 GB, free: 6.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.4604, allocations: 402.2 kB / 0.6448 GB, free: 6.262 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.4605, allocations: 20 kB / 0.6448 GB, free: 6.242 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4607, allocations: 378.8 kB / 0.6452 GB, free: 5.863 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/0.464, allocations: 1.463 MB / 0.6466 GB, free: 4.398 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003383/0.4674, allocations: 1.607 MB / 0.6482 GB, free: 2.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003082/0.4705, allocations: 1.312 MB / 0.6495 GB, free: 1.441 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4705, allocations: 8 kB / 0.6495 GB, free: 1.434 MB / 458.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.006956/0.4775, allocations: 3.072 MB / 0.6525 GB, free: 14.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4775, allocations: 14.38 kB / 0.6525 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.4775, allocations: 4 kB / 0.6525 GB, free: 14.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.4775, allocations: 8 kB / 0.6525 GB, free: 14.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002579/0.4801, allocations: 471.6 kB / 0.653 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.346e-05/0.4801, allocations: 8 kB / 0.653 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.482, allocations: 279.7 kB / 0.6532 GB, free: 13.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.4822, allocations: 43.98 kB / 0.6533 GB, free: 13.54 MB / 474.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: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (150): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004179/0.4826, allocations: 229.5 kB / 0.6535 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.4828, allocations: 63.25 kB / 0.6536 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002443/0.4831, allocations: 120.7 kB / 0.6537 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.4831, allocations: 16 kB / 0.6537 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4831, allocations: 0 / 0.6537 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4831, allocations: 3.984 kB / 0.6537 GB, free: 13.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.4938, allocations: 5.589 MB / 0.6592 GB, free: 7.172 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.067e-05/0.4938, allocations: 20 kB / 0.6592 GB, free: 7.152 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/0.4953, allocations: 411.7 kB / 0.6596 GB, free: 6.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.536e-05/0.4953, allocations: 36 kB / 0.6596 GB, free: 6.715 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.814e-05/0.4954, allocations: 47.98 kB / 0.6596 GB, free: 6.668 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.44e-05/0.4954, allocations: 43.86 kB / 0.6597 GB, free: 6.625 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.656e-05/0.4954, allocations: 31.88 kB / 0.6597 GB, free: 6.594 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007281/0.5027, allocations: 4.534 MB / 0.6641 GB, free: 1.195 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.5031, allocations: 248.2 kB / 0.6644 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.5032, allocations: 51.98 kB / 0.6644 GB, free: 0.8828 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.5045, allocations: 251.8 kB / 0.6647 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003864/0.5049, allocations: 239.3 kB / 0.6649 GB, free: 412 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.859e-05/0.505, allocations: 56 kB / 0.665 GB, free: 356 kB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002593/0.5052, allocations: 283.1 kB / 0.6652 GB, free: 72 kB / 474.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5052, allocations: 0 / 0.6652 GB, free: 72 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.000874/0.5061, allocations: 236 kB / 0.6655 GB, free: 15.84 MB / 490.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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002114/0.5063, allocations: 178.7 kB / 0.6656 GB, free: 15.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005733/0.5121, allocations: 2.593 MB / 0.6682 GB, free: 13.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.5121, allocations: 4 kB / 0.6682 GB, free: 13.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003034/0.5151, allocations: 1.188 MB / 0.6693 GB, free: 11.88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007219/0.5159, allocations: 136.1 kB / 0.6694 GB, free: 11.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.5193, allocations: 2.151 MB / 0.6715 GB, free: 9.281 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.5197, allocations: 0.932 MB / 0.6725 GB, free: 8.32 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00113/0.5209, allocations: 194 kB / 0.6726 GB, free: 8.129 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005431/0.5214, allocations: 71.41 kB / 0.6727 GB, free: 8.059 MB / 490.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5214, allocations: 0 / 0.6727 GB, free: 8.059 MB / 490.7 MB Notification: Performance of Templates: time 0.1834/0.7048, allocations: 14.8 MB / 0.6872 GB, free: 134.9 MB / 490.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