Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 110.7 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2122/0.2122, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 67.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1133, allocations: 57.78 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003265/0.1166, allocations: 2.412 MB / 0.4902 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.1181, allocations: 0.9834 MB / 0.4912 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.1183, allocations: 11.94 kB / 0.4912 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003598/0.1187, allocations: 119.2 kB / 0.4913 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.1189, allocations: 107.3 kB / 0.4914 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005665/0.1195, allocations: 291.5 kB / 0.4917 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006147/0.1201, allocations: 0.721 MB / 0.4924 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1203, allocations: 69.06 kB / 0.4925 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002869/0.1206, allocations: 306.9 kB / 0.4928 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.1209, allocations: 330.7 kB / 0.4931 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.992e-05/0.121, allocations: 60 kB / 0.4931 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.177e-05/0.1211, allocations: 60 kB / 0.4932 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.1213, allocations: 183.5 kB / 0.4934 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002039/0.1215, allocations: 246.7 kB / 0.4936 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004868/0.122, allocations: 0.5567 MB / 0.4941 GB, free: 5.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.122, allocations: 3.984 kB / 0.4941 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.122, allocations: 4 kB / 0.4941 GB, free: 5.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.122, allocations: 0 / 0.4941 GB, free: 5.363 MB / 382.1 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.002002/0.124, allocations: 0.9309 MB / 0.4951 GB, free: 4.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1241, allocations: 11.89 kB / 0.4951 GB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.1242, allocations: 68.36 kB / 0.4951 GB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005295/0.1247, allocations: 387.1 kB / 0.4955 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003175/0.125, allocations: 263.7 kB / 0.4958 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.702e-05/0.1251, allocations: 44.31 kB / 0.4958 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.1268, allocations: 0.8087 MB / 0.4966 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1269, allocations: 4 kB / 0.4966 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.1269, allocations: 19.94 kB / 0.4966 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.127, allocations: 11.98 kB / 0.4966 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/0.1299, allocations: 1.2 MB / 0.4978 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.1324, allocations: 2.043 MB / 0.4998 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.135, allocations: 0.8212 MB / 0.5006 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.1363, allocations: 497.8 kB / 0.5011 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.781e-05/0.1364, allocations: 11.98 kB / 0.5011 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1364, allocations: 42.5 kB / 0.5011 GB, free: 13.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 1.633e-06/0.1364, allocations: 0 / 0.5011 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.07671/0.2131, allocations: 15.76 MB / 0.5165 GB, free: 14.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.2132, allocations: 90.23 kB / 0.5166 GB, free: 13.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.2137, allocations: 397.4 kB / 0.517 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.2138, allocations: 41.7 kB / 0.517 GB, free: 13.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.214, allocations: 217.1 kB / 0.5172 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004015/0.2144, allocations: 406.1 kB / 0.5176 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005588/0.2149, allocations: 194.8 kB / 0.5178 GB, free: 12.65 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2151, allocations: 378.8 kB / 0.5181 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003267/0.2184, allocations: 1.338 MB / 0.5195 GB, free: 10.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003284/0.2217, allocations: 1.505 MB / 0.5209 GB, free: 9.379 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005722/0.2274, allocations: 2.445 MB / 0.5233 GB, free: 6.891 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.2274, allocations: 4 kB / 0.5233 GB, free: 6.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006731/0.2342, allocations: 2.834 MB / 0.5261 GB, free: 4.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.2342, allocations: 8 kB / 0.5261 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2342, allocations: 0 / 0.5261 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.2343, allocations: 12 kB / 0.5261 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002468/0.2367, allocations: 407.4 kB / 0.5265 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.877e-05/0.2368, allocations: 11.94 kB / 0.5265 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.2385, allocations: 219.7 kB / 0.5267 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001552/0.2386, allocations: 39.98 kB / 0.5268 GB, free: 3.359 MB / 414.1 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.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],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.0004529/0.2391, allocations: 233.8 kB / 0.527 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.2393, allocations: 59.25 kB / 0.527 GB, free: 3.062 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002423/0.2396, allocations: 112.7 kB / 0.5271 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.2396, allocations: 16 kB / 0.5272 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/0.2396, allocations: 3.938 kB / 0.5272 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.2396, allocations: 11.97 kB / 0.5272 GB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2375/0.4772, allocations: 5.214 MB / 0.5323 GB, free: 41.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.708e-05/0.4773, allocations: 22.06 kB / 0.5323 GB, free: 41.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/0.4786, allocations: 354.5 kB / 0.5326 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.913e-05/0.4787, allocations: 27.89 kB / 0.5326 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-05/0.4788, allocations: 45.56 kB / 0.5327 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-05/0.4788, allocations: 46.27 kB / 0.5327 GB, free: 41.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.309e-05/0.4788, allocations: 31.66 kB / 0.5328 GB, free: 41.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00679/0.4856, allocations: 3.087 MB / 0.5358 GB, free: 39.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005545/0.4862, allocations: 239.5 kB / 0.536 GB, free: 39.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.4864, allocations: 49.16 kB / 0.5361 GB, free: 39.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.4876, allocations: 190.7 kB / 0.5362 GB, free: 39.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004435/0.488, allocations: 222.6 kB / 0.5364 GB, free: 39.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.179e-05/0.4881, allocations: 55.28 kB / 0.5365 GB, free: 39.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002743/0.4884, allocations: 269.6 kB / 0.5368 GB, free: 39.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4884, allocations: 0 / 0.5368 GB, free: 39.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00097/0.4894, allocations: 229.2 kB / 0.537 GB, free: 39.77 MB / 414.1 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.0002342/0.4896, allocations: 166.4 kB / 0.5371 GB, free: 39.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005841/0.4955, allocations: 2.384 MB / 0.5395 GB, free: 39.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-05/0.4955, allocations: 4.906 kB / 0.5395 GB, free: 39.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003373/0.4989, allocations: 1.069 MB / 0.5405 GB, free: 38.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.5002, allocations: 154.9 kB / 0.5407 GB, free: 38.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.5037, allocations: 1.953 MB / 0.5426 GB, free: 37.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.5042, allocations: 0.9231 MB / 0.5435 GB, free: 36.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009386/0.5051, allocations: 210.9 kB / 0.5437 GB, free: 36.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000525/0.5057, allocations: 73.47 kB / 0.5437 GB, free: 36.43 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5057, allocations: 0 / 0.5437 GB, free: 36.43 MB / 414.1 MB Notification: Performance of Templates: time 0.02437/0.53, allocations: 16.87 MB / 0.5602 GB, free: 28.16 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches