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.001371/0.001372, allocations: 111.6 kB / 17.04 MB, free: 5.816 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.001618/0.001618, allocations: 195 kB / 17.98 MB, free: 5.027 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.781/1.781, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2294/0.2294, allocations: 43.52 MB / 314.7 MB, free: 500 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.001768/0.001769, allocations: 72.25 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1318, allocations: 57.79 MB / 442 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004959/0.1368, allocations: 2.4 MB / 444.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1391, allocations: 0.9834 MB / 445.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.1394, allocations: 11.94 kB / 445.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005201/0.1399, allocations: 111.2 kB / 445.5 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003074/0.1403, allocations: 103.3 kB / 445.6 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000925/0.1412, allocations: 291.5 kB / 445.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008254/0.142, allocations: 0.7171 MB / 446.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.1423, allocations: 76.97 kB / 446.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004422/0.1428, allocations: 303 kB / 446.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004889/0.1433, allocations: 334.7 kB / 447.3 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.1434, allocations: 60 kB / 447.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.89e-05/0.1435, allocations: 60 kB / 447.4 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.1437, allocations: 187.5 kB / 447.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.144, allocations: 246.7 kB / 447.8 MB, free: 304 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007446/0.1447, allocations: 0.5567 MB / 448.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.1447, allocations: 4 kB / 448.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1447, allocations: 0 / 448.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1448, allocations: 0 / 448.4 MB, free: 15.73 MB / 334.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.003168/0.1479, allocations: 0.9431 MB / 449.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.148, allocations: 11.89 kB / 449.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.1482, allocations: 60.38 kB / 449.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.1492, allocations: 379.1 kB / 449.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005554/0.1498, allocations: 263.7 kB / 450 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.15, allocations: 44.38 kB / 450.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002884/0.1529, allocations: 0.8086 MB / 450.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.153, allocations: 3.984 kB / 450.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.244e-05/0.153, allocations: 19.94 kB / 450.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1531, allocations: 16 kB / 450.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004837/0.1579, allocations: 1.2 MB / 452.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004213/0.1622, allocations: 2.039 MB / 454.1 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004416/0.1666, allocations: 0.8217 MB / 455 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002262/0.1689, allocations: 0.4896 MB / 455.5 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.1691, allocations: 5.062 kB / 455.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/0.1691, allocations: 46.5 kB / 455.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 4.509e-06/0.1691, allocations: 0 / 455.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.1095/0.2787, allocations: 15.75 MB / 471.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.2788, allocations: 90.23 kB / 471.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.2794, allocations: 389.5 kB / 471.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.2796, allocations: 41.7 kB / 471.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.2798, allocations: 229 kB / 472 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004845/0.2803, allocations: 398.2 kB / 472.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006698/0.2809, allocations: 198.8 kB / 472.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.2811, allocations: 374.8 kB / 472.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003464/0.2846, allocations: 1.338 MB / 474.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/0.2882, allocations: 1.505 MB / 475.8 MB, free: 3.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006821/0.2951, allocations: 2.438 MB / 478.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.2951, allocations: 0 / 478.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007963/0.3031, allocations: 2.838 MB / 481.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.792e-05/0.3032, allocations: 5.25 kB / 481.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.3032, allocations: 4 kB / 481.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.046e-05/0.3033, allocations: 8 kB / 481.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002723/0.306, allocations: 411.6 kB / 481.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.082e-05/0.306, allocations: 11.94 kB / 481.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.3081, allocations: 219.7 kB / 481.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002013/0.3084, allocations: 36 kB / 481.7 MB, free: 13.76 MB / 366.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.0006741/0.3091, allocations: 245.6 kB / 482 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.3095, allocations: 63.25 kB / 482 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.3097, allocations: 112.7 kB / 482.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.3098, allocations: 12 kB / 482.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/0.3098, allocations: 7.922 kB / 482.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3098, allocations: 3.984 kB / 482.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.3222, allocations: 5.227 MB / 487.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.587e-05/0.3223, allocations: 24 kB / 487.4 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.3238, allocations: 356.2 kB / 487.8 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.364e-05/0.3238, allocations: 28 kB / 487.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.324, allocations: 48 kB / 487.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-05/0.324, allocations: 47.73 kB / 487.9 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-05/0.324, allocations: 31.88 kB / 487.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00733/0.3314, allocations: 3.09 MB / 491 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006653/0.3321, allocations: 240.3 kB / 491.2 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.3323, allocations: 51.98 kB / 491.3 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.3337, allocations: 187.8 kB / 491.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005949/0.3343, allocations: 215.2 kB / 491.7 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.3345, allocations: 60.09 kB / 491.7 MB, free: 3.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000416/0.3349, allocations: 263.1 kB / 492 MB, free: 2.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.705e-06/0.3349, allocations: 0 / 492 MB, free: 2.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001353/0.3363, allocations: 239.9 kB / 492.2 MB, free: 2.574 MB / 366.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.0003461/0.3366, allocations: 166.7 kB / 492.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006516/0.3431, allocations: 2.383 MB / 494.8 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/0.3432, allocations: 8.125 kB / 494.8 MB, free: 12 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003423/0.3466, allocations: 1.063 MB / 495.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.348, allocations: 153.4 kB / 496 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004091/0.3521, allocations: 1.949 MB / 498 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007298/0.3529, allocations: 0.9283 MB / 498.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001152/0.354, allocations: 210 kB / 499.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005913/0.3546, allocations: 71.42 kB / 499.2 MB, free: 11.31 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3547, allocations: 0 / 499.2 MB, free: 11.31 MB / 382.1 MB Notification: Performance of Templates: time 0.02943/0.3841, allocations: 16.67 MB / 0.5037 GB, free: 10.64 MB / 398.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches