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.001934/0.001934, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.00221/0.00221, allocations: 210.9 kB / 24.48 MB, free: 3.938 MB / 14.72 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.476/1.476, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001535/0.001535, allocations: 43.92 kB / 379 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2757, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003942/0.2797, allocations: 2.242 MB / 434.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.2812, allocations: 0.7677 MB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.2813, allocations: 11.88 kB / 435.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002711/0.2816, allocations: 51.58 kB / 435.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.2818, allocations: 63.55 kB / 435.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.2823, allocations: 171.3 kB / 435.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.2827, allocations: 379.5 kB / 436 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.2829, allocations: 71.59 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.2832, allocations: 171.5 kB / 436.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.2835, allocations: 175.3 kB / 436.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.824e-05/0.2835, allocations: 36 kB / 436.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.027e-05/0.2836, allocations: 32 kB / 436.5 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.2837, allocations: 99.72 kB / 436.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2838, allocations: 127.4 kB / 436.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000401/0.2842, allocations: 337.4 kB / 437 MB, free: 2.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2842, allocations: 0 / 437 MB, free: 2.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2842, allocations: 0 / 437 MB, free: 2.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2842, allocations: 0 / 437 MB, free: 2.008 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001252/0.2855, allocations: 0.5444 MB / 437.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2855, allocations: 12.03 kB / 437.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.759e-05/0.2856, allocations: 40.75 kB / 437.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.2861, allocations: 206.6 kB / 437.8 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/0.2864, allocations: 343.9 kB / 438.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.386e-05/0.2864, allocations: 36.33 kB / 438.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.2877, allocations: 0.5599 MB / 438.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.2877, allocations: 0 / 438.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.2877, allocations: 12 kB / 438.7 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2877, allocations: 8 kB / 438.8 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.2892, allocations: 0.5082 MB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.2907, allocations: 0.8482 MB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.2922, allocations: 470.5 kB / 440.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006832/0.2928, allocations: 243 kB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.2929, allocations: 7.938 kB / 440.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.2929, allocations: 38.72 kB / 440.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.2929, allocations: 0 / 440.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03632/0.3293, allocations: 5.752 MB / 446.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.3294, allocations: 156.9 kB / 446.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.3297, allocations: 203.1 kB / 447 MB, free: 7.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.343e-05/0.3297, allocations: 37.7 kB / 447 MB, free: 7.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.3299, allocations: 145.7 kB / 447.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.3301, allocations: 202.3 kB / 447.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002819/0.3304, allocations: 114.7 kB / 447.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.3305, allocations: 342.8 kB / 447.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.3322, allocations: 0.6266 MB / 448.4 MB, free: 6.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.3341, allocations: 0.8003 MB / 449.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/0.3373, allocations: 1.268 MB / 450.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.3373, allocations: 0 / 450.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003762/0.341, allocations: 1.403 MB / 451.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.3411, allocations: 8 kB / 451.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.3411, allocations: 11.98 kB / 451.9 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.3411, allocations: 8 kB / 451.9 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.3424, allocations: 207.6 kB / 452.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/0.3424, allocations: 15.97 kB / 452.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009081/0.3433, allocations: 103.8 kB / 452.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.994e-05/0.3434, allocations: 28 kB / 452.3 MB, free: 2.262 MB / 350.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: 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 (84): * Single equations (assignments): 84 * 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.0003652/0.3438, allocations: 177.6 kB / 452.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003282/0.3441, allocations: 149.4 kB / 452.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.3442, allocations: 63.31 kB / 452.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.3443, allocations: 15.98 kB / 452.7 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.3443, allocations: 3.938 kB / 452.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3443, allocations: 0 / 452.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004901/0.3492, allocations: 1.918 MB / 454.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.3492, allocations: 8 kB / 454.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/0.3499, allocations: 188.3 kB / 454.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.028e-05/0.3499, allocations: 16 kB / 454.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.35, allocations: 27.94 kB / 454.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.666e-05/0.35, allocations: 15.94 kB / 454.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.458e-05/0.35, allocations: 15.94 kB / 454.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003582/0.3536, allocations: 1.581 MB / 456.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/0.3538, allocations: 83.97 kB / 456.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.884e-05/0.3539, allocations: 32 kB / 456.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.3545, allocations: 79.91 kB / 456.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.3547, allocations: 103.6 kB / 456.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.026e-05/0.3547, allocations: 28 kB / 456.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001526/0.3549, allocations: 152.2 kB / 456.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3549, allocations: 0 / 456.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006797/0.3556, allocations: 124 kB / 457 MB, free: 13.18 MB / 366.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: 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.0001881/0.3558, allocations: 142.9 kB / 457.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.3587, allocations: 1.042 MB / 458.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.3587, allocations: 4 kB / 458.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.3597, allocations: 334.3 kB / 458.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008937/0.3606, allocations: 131.6 kB / 458.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.3632, allocations: 1.218 MB / 459.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.3634, allocations: 199.3 kB / 460.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/0.3637, allocations: 55.36 kB / 460.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3637, allocations: 0 / 460.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of Templates: time 0.01244/0.3761, allocations: 7.31 MB / 467.4 MB, free: 2.57 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.6488279170007445]