Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 104 kB / 17.59 MB, free: 5.555 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.001841/0.001841, allocations: 191.5 kB / 18.51 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 57.88 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1126, allocations: 49.43 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004251/0.1169, allocations: 2.378 MB / 353.1 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.1186, allocations: 0.8299 MB / 353.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.1188, allocations: 7.938 kB / 353.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.1192, allocations: 59.56 kB / 354 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.1194, allocations: 63.48 kB / 354 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006298/0.1201, allocations: 202.8 kB / 354.2 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.1205, allocations: 395.4 kB / 354.6 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.1207, allocations: 99.52 kB / 354.7 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/0.121, allocations: 163.4 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.1212, allocations: 183.2 kB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.279e-05/0.1213, allocations: 36 kB / 355.1 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.009e-05/0.1214, allocations: 32.05 kB / 355.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.1215, allocations: 107.7 kB / 355.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1217, allocations: 167 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003817/0.1221, allocations: 351.1 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1221, allocations: 0 / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1221, allocations: 4 kB / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.1221, allocations: 0 / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001351/0.1235, allocations: 0.6743 MB / 356.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1235, allocations: 11.89 kB / 356.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.1237, allocations: 48.41 kB / 356.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.1241, allocations: 307.1 kB / 356.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.1243, allocations: 138.3 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.728e-05/0.1244, allocations: 32.31 kB / 356.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.1256, allocations: 0.57 MB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.1256, allocations: 11.91 kB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.1257, allocations: 8 kB / 357.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1257, allocations: 8 kB / 357.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.1271, allocations: 0.5001 MB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1286, allocations: 1.022 MB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.1302, allocations: 0.5092 MB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006559/0.1309, allocations: 259.4 kB / 359.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.458e-05/0.131, allocations: 12 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.131, allocations: 42.5 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.625e-06/0.131, allocations: 0 / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03957/0.1706, allocations: 5.754 MB / 365.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.1707, allocations: 145.4 kB / 365.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.171, allocations: 270.5 kB / 366 MB, free: 4.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.442e-05/0.1711, allocations: 37.7 kB / 366.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.1712, allocations: 141.6 kB / 366.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.1714, allocations: 189.3 kB / 366.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004021/0.1718, allocations: 114.6 kB / 366.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.172, allocations: 346.8 kB / 366.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.1736, allocations: 0.6188 MB / 367.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.1753, allocations: 0.7963 MB / 368.3 MB, free: 2.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.1784, allocations: 1.255 MB / 369.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1784, allocations: 0 / 369.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1944/0.3728, allocations: 1.4 MB / 370.9 MB, free: 25.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.3729, allocations: 8.469 kB / 370.9 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/0.3729, allocations: 5.438 kB / 370.9 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.813e-05/0.373, allocations: 9.344 kB / 370.9 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.3745, allocations: 212.2 kB / 371.2 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.867e-05/0.3745, allocations: 12.17 kB / 371.2 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009967/0.3755, allocations: 100.6 kB / 371.3 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.86e-05/0.3756, allocations: 29.5 kB / 371.3 MB, free: 25.94 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003739/0.376, allocations: 191.9 kB / 371.5 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/0.3764, allocations: 163.9 kB / 371.6 MB, free: 25.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.3766, allocations: 67.69 kB / 371.7 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.3766, allocations: 8.594 kB / 371.7 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.3766, allocations: 1.547 kB / 371.7 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3766, allocations: 4.297 kB / 371.7 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.3819, allocations: 2.183 MB / 373.9 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/0.382, allocations: 9.312 kB / 373.9 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007857/0.3828, allocations: 186.3 kB / 374.1 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.837e-05/0.3828, allocations: 14.72 kB / 374.1 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-05/0.3829, allocations: 25.06 kB / 374.1 MB, free: 24.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-05/0.3829, allocations: 19.52 kB / 374.2 MB, free: 24.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/0.3829, allocations: 21.22 kB / 374.2 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00311/0.386, allocations: 1.567 MB / 375.7 MB, free: 24.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002307/0.3863, allocations: 181.6 kB / 375.9 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.929e-05/0.3864, allocations: 30.98 kB / 375.9 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005763/0.3869, allocations: 78.89 kB / 376 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.3872, allocations: 95 kB / 376.1 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.297e-05/0.3872, allocations: 31.55 kB / 376.1 MB, free: 23.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.3874, allocations: 186.2 kB / 376.3 MB, free: 23.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3874, allocations: 1.406 kB / 376.3 MB, free: 23.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007549/0.3882, allocations: 123.8 kB / 376.5 MB, free: 23.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001739/0.3884, allocations: 146.9 kB / 376.6 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002971/0.3913, allocations: 1.145 MB / 377.7 MB, free: 23.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.3914, allocations: 6.438 kB / 377.7 MB, free: 23.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.3924, allocations: 340.4 kB / 378.1 MB, free: 23.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009719/0.3934, allocations: 151 kB / 378.2 MB, free: 23.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.3959, allocations: 1.258 MB / 379.5 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.3963, allocations: 0.8293 MB / 380.3 MB, free: 21.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000328/0.3966, allocations: 45.5 kB / 380.4 MB, free: 21.38 MB / 302.1 MB Notification: Performance of SimCode: time 2.375e-06/0.3966, allocations: 5 kB / 380.4 MB, free: 21.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01425/0.4109, allocations: 7.345 MB / 387.7 MB, free: 18.62 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches