Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.5 MB / 243.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007721/0.0007721, allocations: 96.53 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2849/0.2849, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.0002681, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.283, allocations: 62.95 MB / 0.5159 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.001708/0.2848, allocations: 2.001 MB / 0.5178 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2859, allocations: 0.9251 MB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.286, allocations: 13.81 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002718/0.2863, allocations: 91.34 kB / 0.5188 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001589/0.2865, allocations: 70.45 kB / 0.5189 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004297/0.2869, allocations: 226.1 kB / 0.5191 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004382/0.2874, allocations: 0.6328 MB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.2875, allocations: 66.55 kB / 0.5198 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.2877, allocations: 268.7 kB / 0.52 GB, free: 34.29 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002448/0.288, allocations: 294.4 kB / 0.5203 GB, free: 34.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.441e-05/0.288, allocations: 30.59 kB / 0.5204 GB, free: 34.18 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.774e-05/0.2881, allocations: 31.44 kB / 0.5204 GB, free: 34.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.2882, allocations: 148.1 kB / 0.5205 GB, free: 34.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.2884, allocations: 236.5 kB / 0.5208 GB, free: 33.97 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.2886, allocations: 390.5 kB / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2886, allocations: 0 / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2887, allocations: 0 / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2887, allocations: 0 / 0.5211 GB, free: 33.88 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.001759/0.2904, allocations: 0.9228 MB / 0.522 GB, free: 33.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.2905, allocations: 13.47 kB / 0.522 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.847e-05/0.2906, allocations: 62.47 kB / 0.5221 GB, free: 33.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.291, allocations: 368.4 kB / 0.5224 GB, free: 33.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002797/0.2913, allocations: 269 kB / 0.5227 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/0.2913, allocations: 50.66 kB / 0.5228 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.2931, allocations: 0.8743 MB / 0.5236 GB, free: 32.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.2931, allocations: 0 / 0.5236 GB, free: 32.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.674e-05/0.2932, allocations: 17.38 kB / 0.5236 GB, free: 32.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.2932, allocations: 8.531 kB / 0.5236 GB, free: 32.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003066/0.2963, allocations: 1.322 MB / 0.5249 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.2986, allocations: 2.068 MB / 0.5269 GB, free: 30.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00258/0.3012, allocations: 0.9007 MB / 0.5278 GB, free: 30.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.3025, allocations: 0.5501 MB / 0.5284 GB, free: 30.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.392e-05/0.3026, allocations: 10.02 kB / 0.5284 GB, free: 30.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.3026, allocations: 48.36 kB / 0.5284 GB, free: 30.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.335e-06/0.3026, allocations: 0 / 0.5284 GB, free: 30.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08106/0.3837, allocations: 18.23 MB / 0.5462 GB, free: 24.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.3838, allocations: 89.73 kB / 0.5463 GB, free: 24.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.3842, allocations: 388.3 kB / 0.5467 GB, free: 24.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.3844, allocations: 45.11 kB / 0.5467 GB, free: 24.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/0.3845, allocations: 221.2 kB / 0.5469 GB, free: 24.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.3848, allocations: 401.2 kB / 0.5473 GB, free: 23.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.3849, allocations: 25.09 kB / 0.5473 GB, free: 23.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.087e-05/0.385, allocations: 373.2 kB / 0.5477 GB, free: 23.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003225/0.3882, allocations: 1.451 MB / 0.5491 GB, free: 22.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/0.3913, allocations: 1.601 MB / 0.5507 GB, free: 21.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005495/0.3968, allocations: 2.669 MB / 0.5533 GB, free: 18.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3968, allocations: 0 / 0.5533 GB, free: 18.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006395/0.4032, allocations: 3.056 MB / 0.5563 GB, free: 15.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4033, allocations: 6.344 kB / 0.5563 GB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.4033, allocations: 4 kB / 0.5563 GB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.4033, allocations: 8 kB / 0.5563 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/0.4058, allocations: 467.6 kB / 0.5567 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.4058, allocations: 19.88 kB / 0.5567 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.4076, allocations: 275.7 kB / 0.557 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.4078, allocations: 39.98 kB / 0.557 GB, free: 14.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004413/0.4082, allocations: 233.5 kB / 0.5573 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.4084, allocations: 71.16 kB / 0.5573 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/0.4086, allocations: 104.7 kB / 0.5574 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.4086, allocations: 12 kB / 0.5574 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/0.4087, allocations: 7.938 kB / 0.5575 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.4087, allocations: 7.969 kB / 0.5575 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009273/0.4179, allocations: 5.539 MB / 0.5629 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.418, allocations: 28 kB / 0.5629 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.4193, allocations: 412.2 kB / 0.5633 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.899e-05/0.4193, allocations: 28 kB / 0.5633 GB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.117e-05/0.4194, allocations: 51.94 kB / 0.5634 GB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.997e-05/0.4194, allocations: 43.8 kB / 0.5634 GB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/0.4195, allocations: 31.88 kB / 0.5634 GB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005871/0.4253, allocations: 3.415 MB / 0.5668 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003793/0.4257, allocations: 244.3 kB / 0.567 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.4259, allocations: 47.98 kB / 0.5671 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.427, allocations: 259.7 kB / 0.5673 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/0.4274, allocations: 235.2 kB / 0.5675 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.937e-05/0.4275, allocations: 56 kB / 0.5676 GB, free: 3.219 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002449/0.4277, allocations: 263.1 kB / 0.5678 GB, free: 2.961 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4277, allocations: 0 / 0.5678 GB, free: 2.961 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009173/0.4287, allocations: 228 kB / 0.568 GB, free: 2.738 MB / 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 (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.000193/0.4289, allocations: 174.7 kB / 0.5682 GB, free: 2.555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005266/0.4341, allocations: 2.551 MB / 0.5707 GB, free: 8 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.4342, allocations: 4 kB / 0.5707 GB, free: 4 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003428/0.4376, allocations: 1.176 MB / 0.5719 GB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.4396, allocations: 155.2 kB / 0.572 GB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003797/0.4434, allocations: 2.197 MB / 0.5742 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.444, allocations: 0.9246 MB / 0.5751 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007349/0.4447, allocations: 75.42 kB / 0.5751 GB, free: 11.14 MB / 394.7 MB Notification: Performance of SimCode: time 2.885e-06/0.4448, allocations: 0 / 0.5751 GB, free: 11.14 MB / 394.7 MB Notification: Performance of Templates: time 0.01947/0.4642, allocations: 14.18 MB / 0.589 GB, free: 12.96 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches