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.001013/0.001013, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008437/0.0008437, allocations: 90.7 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2003/0.2003, allocations: 45.13 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.794e-05/2.796e-05, allocations: 4 kB / 460.4 MB, free: 70.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.08959, allocations: 63.25 MB / 0.5114 GB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3396/0.4292, allocations: 90.25 MB / 0.5995 GB, free: 3.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001616/0.4294, allocations: 63.41 kB / 0.5995 GB, free: 3.648 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03385/0.4633, allocations: 11.9 MB / 0.6112 GB, free: 9.418 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4633, allocations: 0 / 0.6112 GB, free: 9.418 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.827e-05/0.4634, allocations: 11.98 kB / 0.6112 GB, free: 9.406 MB / 410.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.001931/0.4653, allocations: 0.9008 MB / 0.6121 GB, free: 8.496 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.4653, allocations: 11.97 kB / 0.6121 GB, free: 8.484 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.4655, allocations: 64.12 kB / 0.6121 GB, free: 8.422 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.466, allocations: 368.7 kB / 0.6125 GB, free: 8.059 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003385/0.4663, allocations: 271.9 kB / 0.6127 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.284e-05/0.4664, allocations: 45.72 kB / 0.6128 GB, free: 7.746 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009043/0.4673, allocations: 0.6216 MB / 0.6134 GB, free: 7.277 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.4674, allocations: 11.92 kB / 0.6134 GB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.233e-05/0.4674, allocations: 14.69 kB / 0.6134 GB, free: 7.262 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.4674, allocations: 8 kB / 0.6134 GB, free: 7.254 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.4687, allocations: 0.8377 MB / 0.6142 GB, free: 6.676 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/0.4713, allocations: 2.089 MB / 0.6163 GB, free: 4.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.4726, allocations: 0.5774 MB / 0.6168 GB, free: 4.449 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004551/0.4731, allocations: 316.6 kB / 0.6171 GB, free: 4.266 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.933e-05/0.4732, allocations: 8.562 kB / 0.6172 GB, free: 4.258 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.4732, allocations: 45.67 kB / 0.6172 GB, free: 4.211 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.044e-06/0.4732, allocations: 0 / 0.6172 GB, free: 4.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01949/0.4927, allocations: 7.408 MB / 0.6244 GB, free: 14.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/0.4929, allocations: 94.17 kB / 0.6245 GB, free: 14.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006573/0.4935, allocations: 359.7 kB / 0.6249 GB, free: 14.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001646/0.4937, allocations: 44.14 kB / 0.6249 GB, free: 14.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.4939, allocations: 220.3 kB / 0.6251 GB, free: 14.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/0.4943, allocations: 408.5 kB / 0.6255 GB, free: 13.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.4945, allocations: 22.88 kB / 0.6255 GB, free: 13.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.4947, allocations: 372.4 kB / 0.6259 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.4962, allocations: 0.9664 MB / 0.6268 GB, free: 12.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.498, allocations: 1.123 MB / 0.6279 GB, free: 12.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.4994, allocations: 0.8297 MB / 0.6287 GB, free: 11.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.4994, allocations: 0 / 0.6287 GB, free: 11.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003534/0.503, allocations: 2.094 MB / 0.6308 GB, free: 10.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/0.503, allocations: 7.953 kB / 0.6308 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.5031, allocations: 12.23 kB / 0.6308 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-05/0.5031, allocations: 12 kB / 0.6308 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002773/0.5059, allocations: 465.9 kB / 0.6313 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.672e-05/0.5059, allocations: 8 kB / 0.6313 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.5079, allocations: 277.2 kB / 0.6315 GB, free: 9.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/0.5081, allocations: 42.92 kB / 0.6316 GB, free: 9.785 MB / 426.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 () * 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.0003601/0.5085, allocations: 164.2 kB / 0.6317 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.5087, allocations: 67.23 kB / 0.6318 GB, free: 9.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002835/0.509, allocations: 120.8 kB / 0.6319 GB, free: 9.551 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.509, allocations: 12 kB / 0.6319 GB, free: 9.539 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.5091, allocations: 3.938 kB / 0.6319 GB, free: 9.535 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.5091, allocations: 3.984 kB / 0.6319 GB, free: 9.531 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00821/0.5173, allocations: 4.78 MB / 0.6366 GB, free: 5.547 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.719e-05/0.5174, allocations: 20 kB / 0.6366 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/0.5189, allocations: 410.6 kB / 0.637 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-05/0.519, allocations: 32 kB / 0.637 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.5191, allocations: 47.62 kB / 0.6371 GB, free: 5.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.65e-05/0.5191, allocations: 43.8 kB / 0.6371 GB, free: 5.027 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.811e-05/0.5191, allocations: 35.86 kB / 0.6372 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.5224, allocations: 3.319 MB / 0.6404 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003689/0.5227, allocations: 248.3 kB / 0.6406 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.5229, allocations: 47.98 kB / 0.6407 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.5242, allocations: 259.8 kB / 0.6409 GB, free: 292 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/0.5246, allocations: 235.2 kB / 0.6412 GB, free: 56 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.226e-05/0.5247, allocations: 56 kB / 0.6412 GB, free: 0 / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003219/0.5251, allocations: 274.3 kB / 0.6415 GB, free: 15.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5251, allocations: 0 / 0.6415 GB, free: 15.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009462/0.526, allocations: 240 kB / 0.6417 GB, free: 15.49 MB / 442.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 () * 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.0002479/0.5263, allocations: 168.2 kB / 0.6419 GB, free: 15.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.5289, allocations: 1.684 MB / 0.6435 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.5289, allocations: 7.938 kB / 0.6435 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001676/0.5306, allocations: 0.7912 MB / 0.6443 GB, free: 12.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008663/0.5315, allocations: 130.2 kB / 0.6444 GB, free: 12.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.5349, allocations: 1.706 MB / 0.6461 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.5355, allocations: 0.9359 MB / 0.647 GB, free: 9.746 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001249/0.5367, allocations: 186 kB / 0.6472 GB, free: 9.562 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006068/0.5373, allocations: 75.42 kB / 0.6472 GB, free: 9.488 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5374, allocations: 0 / 0.6472 GB, free: 9.488 MB / 442.7 MB Notification: Performance of Templates: time 0.02362/0.561, allocations: 14.81 MB / 0.6617 GB, free: 10.71 MB / 458.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