Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 170.2 kB / 24.82 MB, free: 9.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.037/1.037, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.68e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003219/0.003246, allocations: 2.326 MB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.004656, allocations: 0.787 MB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000212/0.004868, allocations: 7.938 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00036/0.005228, allocations: 59.5 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.005461, allocations: 55.56 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005033/0.005964, allocations: 171.5 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006432/0.006607, allocations: 383.5 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.006797, allocations: 63.86 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003366/0.007133, allocations: 219.5 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.007314, allocations: 143.6 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.007359, allocations: 40 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.699e-05/0.007396, allocations: 32 kB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.418e-05/0.00748, allocations: 103.6 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.74e-05/0.007557, allocations: 103.8 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003079/0.007865, allocations: 255 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.007869, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.00787, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.007876, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007643/0.00864, allocations: 0.6326 MB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.008693, allocations: 12.03 kB / 278.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.243e-05/0.008775, allocations: 72.69 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.009024, allocations: 211.1 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.009219, allocations: 339.9 kB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.581e-05/0.009265, allocations: 40.3 kB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.009775, allocations: 421 kB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.009791, allocations: 7.938 kB / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.009815, allocations: 12 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.009823, allocations: 4 kB / 279.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.0101, allocations: 199 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008699/0.01097, allocations: 0.9022 MB / 280.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.01144, allocations: 316.8 kB / 281.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.01157, allocations: 131.6 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.972e-05/0.01161, allocations: 11.98 kB / 281.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.01164, allocations: 49.27 kB / 281.4 MB, free: 8.949 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.01164, allocations: 0 / 281.4 MB, free: 8.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006191/0.01783, allocations: 2.386 MB / 283.8 MB, free: 6.562 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002235/0.01805, allocations: 149 kB / 283.9 MB, free: 6.387 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.0182, allocations: 245.7 kB / 284.2 MB, free: 6.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/0.01825, allocations: 37.7 kB / 284.2 MB, free: 6.086 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/0.01833, allocations: 188.5 kB / 284.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.01846, allocations: 206.2 kB / 284.6 MB, free: 5.691 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.01863, allocations: 95.95 kB / 284.7 MB, free: 5.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.01877, allocations: 0.5195 MB / 285.2 MB, free: 5.059 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.01905, allocations: 245.2 kB / 285.5 MB, free: 4.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/0.01938, allocations: 360 kB / 285.8 MB, free: 4.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005456/0.01992, allocations: 0.5419 MB / 286.3 MB, free: 3.848 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.01992, allocations: 4 kB / 286.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008597/0.02078, allocations: 0.6574 MB / 287 MB, free: 3.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.02081, allocations: 4 kB / 287 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.02081, allocations: 4.219 kB / 287 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.02083, allocations: 8 kB / 287 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005591/0.02139, allocations: 163.7 kB / 287.2 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.02139, allocations: 4 kB / 287.2 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003516/0.02175, allocations: 71.91 kB / 287.3 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.993e-05/0.02179, allocations: 12 kB / 287.3 MB, free: 2.918 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (67): * Single equations (assignments): 67 * 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.0001859/0.02197, allocations: 196.3 kB / 287.5 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.02217, allocations: 153.3 kB / 287.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.96e-05/0.02225, allocations: 63.3 kB / 287.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.02226, allocations: 8 kB / 287.7 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.02226, allocations: 0 / 287.7 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.02227, allocations: 7.984 kB / 287.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.02405, allocations: 1.45 MB / 289.1 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/0.02406, allocations: 15.94 kB / 289.2 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003448/0.0244, allocations: 171.8 kB / 289.3 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.02441, allocations: 12 kB / 289.3 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.207e-05/0.02444, allocations: 24 kB / 289.4 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.829e-06/0.02445, allocations: 19.92 kB / 289.4 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.477e-05/0.02447, allocations: 23.81 kB / 289.4 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007911/0.02526, allocations: 1.062 MB / 290.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.02538, allocations: 83.67 kB / 290.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.02542, allocations: 31.98 kB / 290.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.02569, allocations: 51.95 kB / 290.6 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/0.02597, allocations: 99.66 kB / 290.7 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.02599, allocations: 24 kB / 290.7 MB, free: 15 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.507e-05/0.02606, allocations: 168.1 kB / 290.9 MB, free: 14.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02606, allocations: 0 / 290.9 MB, free: 14.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003921/0.02645, allocations: 116 kB / 291 MB, free: 14.73 MB / 282.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001281/0.02658, allocations: 138.9 kB / 291.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005743/0.02715, allocations: 0.5037 MB / 291.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.02716, allocations: 4 kB / 291.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.02733, allocations: 166.9 kB / 291.8 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.02791, allocations: 139.8 kB / 292 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.02929, allocations: 1.112 MB / 293.1 MB, free: 12.44 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.838e-05/0.02938, allocations: 126.7 kB / 293.2 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002638/0.02965, allocations: 79.19 kB / 293.3 MB, free: 12.22 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003185/0.02997, allocations: 138.2 kB / 293.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.02997, allocations: 0 / 293.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of Templates: time 0.01096/0.04092, allocations: 9.324 MB / 302.7 MB, free: 2.812 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9599658199585974]