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.0009451/0.0009451, allocations: 202.4 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007351/0.000735, allocations: 99.98 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1946/0.1946, allocations: 44.85 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002869, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09644, allocations: 62.96 MB / 0.5153 GB, free: 2.793 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002558/0.09905, allocations: 1.988 MB / 0.5173 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1794/0.2785, allocations: 0.9156 MB / 0.5182 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.2788, allocations: 9.219 kB / 0.5182 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.2791, allocations: 93.86 kB / 0.5183 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.2793, allocations: 75.48 kB / 0.5183 GB, free: 9.832 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005903/0.2799, allocations: 221.9 kB / 0.5185 GB, free: 9.828 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005877/0.2805, allocations: 0.6207 MB / 0.5191 GB, free: 9.797 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.2807, allocations: 58.62 kB / 0.5192 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.2809, allocations: 258 kB / 0.5194 GB, free: 9.742 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003449/0.2813, allocations: 306.5 kB / 0.5197 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.547e-05/0.2814, allocations: 33.17 kB / 0.5198 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.517e-05/0.2815, allocations: 31.12 kB / 0.5198 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.2816, allocations: 151.1 kB / 0.5199 GB, free: 9.672 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.57e-05/0.2817, allocations: 90.14 kB / 0.52 GB, free: 9.629 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004041/0.2821, allocations: 380.5 kB / 0.5204 GB, free: 9.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2821, allocations: 0 / 0.5204 GB, free: 9.605 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2821, allocations: 3.938 kB / 0.5204 GB, free: 9.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.2821, allocations: 0 / 0.5204 GB, free: 9.602 MB / 346.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.001981/0.2841, allocations: 0.928 MB / 0.5213 GB, free: 9.102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2842, allocations: 10.75 kB / 0.5213 GB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.2843, allocations: 61.75 kB / 0.5214 GB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004361/0.2847, allocations: 370.5 kB / 0.5217 GB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003166/0.2851, allocations: 274.3 kB / 0.522 GB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.383e-05/0.2851, allocations: 46.47 kB / 0.522 GB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/0.2871, allocations: 0.8637 MB / 0.5229 GB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.2872, allocations: 4.875 kB / 0.5229 GB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.2872, allocations: 23.14 kB / 0.5229 GB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.2872, allocations: 10.91 kB / 0.5229 GB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003554/0.2908, allocations: 1.319 MB / 0.5242 GB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002614/0.2934, allocations: 2.082 MB / 0.5262 GB, free: 7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0029/0.2964, allocations: 0.9008 MB / 0.5271 GB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.2978, allocations: 0.5414 MB / 0.5276 GB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.548e-05/0.2979, allocations: 7.547 kB / 0.5276 GB, free: 6.594 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.2979, allocations: 43.36 kB / 0.5277 GB, free: 6.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=64): time 3.256e-06/0.2979, allocations: 0 / 0.5277 GB, free: 6.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=120): time 0.08235/0.3803, allocations: 18.24 MB / 0.5455 GB, free: 13.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.3804, allocations: 90.23 kB / 0.5456 GB, free: 13.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004343/0.3808, allocations: 389.4 kB / 0.546 GB, free: 12.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001539/0.381, allocations: 45.7 kB / 0.546 GB, free: 12.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.3811, allocations: 218 kB / 0.5462 GB, free: 12.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003519/0.3815, allocations: 404.1 kB / 0.5466 GB, free: 12.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.3816, allocations: 24.55 kB / 0.5466 GB, free: 12.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3818, allocations: 374.8 kB / 0.547 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003492/0.3853, allocations: 1.451 MB / 0.5484 GB, free: 10.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003664/0.3889, allocations: 1.599 MB / 0.55 GB, free: 8.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003297/0.3923, allocations: 1.308 MB / 0.5512 GB, free: 7.523 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3923, allocations: 7.953 kB / 0.5512 GB, free: 7.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008127/0.4004, allocations: 3.053 MB / 0.5542 GB, free: 4.457 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.4004, allocations: 7.938 kB / 0.5542 GB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.4005, allocations: 4 kB / 0.5542 GB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.4005, allocations: 8 kB / 0.5542 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/0.4033, allocations: 463.7 kB / 0.5547 GB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.112e-05/0.4033, allocations: 15.92 kB / 0.5547 GB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.4054, allocations: 279.7 kB / 0.555 GB, free: 3.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.4055, allocations: 39.98 kB / 0.555 GB, free: 3.656 MB / 362.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.0004934/0.406, allocations: 235.6 kB / 0.5552 GB, free: 3.418 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.4062, allocations: 63.2 kB / 0.5553 GB, free: 3.355 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.4064, allocations: 112.7 kB / 0.5554 GB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.4065, allocations: 12 kB / 0.5554 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4065, allocations: 0 / 0.5554 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.4065, allocations: 11.97 kB / 0.5554 GB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.4177, allocations: 5.544 MB / 0.5608 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/0.4177, allocations: 20 kB / 0.5608 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.4192, allocations: 411.5 kB / 0.5612 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.748e-05/0.4193, allocations: 32 kB / 0.5613 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.672e-05/0.4193, allocations: 47.98 kB / 0.5613 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.651e-05/0.4194, allocations: 43.8 kB / 0.5614 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.119e-05/0.4194, allocations: 35.81 kB / 0.5614 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007032/0.4264, allocations: 3.43 MB / 0.5647 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003667/0.4268, allocations: 232.3 kB / 0.565 GB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.4269, allocations: 55.97 kB / 0.565 GB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.4283, allocations: 251.8 kB / 0.5653 GB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/0.4287, allocations: 227.3 kB / 0.5655 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.151e-05/0.4288, allocations: 57.81 kB / 0.5655 GB, free: 8.242 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.4291, allocations: 263.1 kB / 0.5658 GB, free: 7.984 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4291, allocations: 0 / 0.5658 GB, free: 7.984 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009205/0.43, allocations: 232 kB / 0.566 GB, free: 7.758 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.0002006/0.4302, allocations: 174.7 kB / 0.5662 GB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006376/0.4366, allocations: 2.555 MB / 0.5687 GB, free: 5.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/0.4366, allocations: 7.938 kB / 0.5687 GB, free: 5.012 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003283/0.4399, allocations: 1.164 MB / 0.5698 GB, free: 3.852 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.4413, allocations: 160.7 kB / 0.57 GB, free: 3.695 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.4458, allocations: 2.197 MB / 0.5721 GB, free: 1.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/0.4464, allocations: 0.9324 MB / 0.573 GB, free: 224 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008171/0.4473, allocations: 71.42 kB / 0.5731 GB, free: 156 kB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4473, allocations: 0 / 0.5731 GB, free: 156 kB / 378.7 MB Notification: Performance of Templates: time 0.01901/0.4663, allocations: 14.18 MB / 0.5869 GB, free: 1.988 MB / 394.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