Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.415/1.415, allocations: 230.6 MB / 258.3 MB, free: 8.027 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 64.75 kB / 379 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2713, allocations: 53.37 MB / 432.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003943/0.2752, allocations: 2.366 MB / 434.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.2769, allocations: 0.8144 MB / 435.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.2771, allocations: 7.938 kB / 435.6 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.2773, allocations: 51.58 kB / 435.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.2775, allocations: 59.56 kB / 435.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004712/0.278, allocations: 179.5 kB / 435.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.2785, allocations: 379.5 kB / 436.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.2786, allocations: 71.61 kB / 436.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.2789, allocations: 167.5 kB / 436.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.2792, allocations: 179.3 kB / 436.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.375e-05/0.2793, allocations: 32 kB / 436.7 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.185e-05/0.2793, allocations: 32 kB / 436.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.2794, allocations: 103.7 kB / 436.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.2796, allocations: 139.2 kB / 436.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004015/0.28, allocations: 325.5 kB / 437.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.28, allocations: 0 / 437.3 MB, free: 2.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.28, allocations: 4 kB / 437.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.28, allocations: 0 / 437.3 MB, free: 2.098 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.001168/0.2812, allocations: 0.5467 MB / 437.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2812, allocations: 8.031 kB / 437.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.116e-05/0.2813, allocations: 40.75 kB / 437.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.2817, allocations: 210.5 kB / 438.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.2819, allocations: 138.3 kB / 438.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.605e-05/0.2819, allocations: 36.31 kB / 438.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.283, allocations: 0.5397 MB / 438.8 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.283, allocations: 0 / 438.8 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.2831, allocations: 15.94 kB / 438.8 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.2831, allocations: 8 kB / 438.8 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.2843, allocations: 0.5082 MB / 439.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.2858, allocations: 0.9489 MB / 440.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001445/0.2872, allocations: 490.4 kB / 440.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005495/0.2878, allocations: 241.1 kB / 441 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.2878, allocations: 4 kB / 441 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.2878, allocations: 38.56 kB / 441 MB, free: 14.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.713e-06/0.2879, allocations: 0 / 441 MB, free: 14.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03562/0.3235, allocations: 5.725 MB / 446.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.3236, allocations: 149 kB / 446.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.3238, allocations: 200 kB / 447.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.08e-05/0.3239, allocations: 37.7 kB / 447.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.911e-05/0.324, allocations: 141.8 kB / 447.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/0.3242, allocations: 202.3 kB / 447.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.3245, allocations: 114.6 kB / 447.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3246, allocations: 342.8 kB / 447.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.3262, allocations: 0.6149 MB / 448.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.3278, allocations: 0.7964 MB / 449.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.3307, allocations: 1.251 MB / 450.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3307, allocations: 4 kB / 450.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003431/0.3341, allocations: 1.39 MB / 451.9 MB, free: 2.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.3342, allocations: 8 kB / 452 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.3342, allocations: 8 kB / 452 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.3342, allocations: 8.156 kB / 452 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.3355, allocations: 215.6 kB / 452.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.116e-05/0.3355, allocations: 16.25 kB / 452.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008944/0.3364, allocations: 103.7 kB / 452.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-05/0.3365, allocations: 31.92 kB / 452.3 MB, free: 2.566 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: 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.0003284/0.3368, allocations: 181.7 kB / 452.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003102/0.3371, allocations: 153.4 kB / 452.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.3373, allocations: 63.3 kB / 452.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.3373, allocations: 8 kB / 452.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.3373, allocations: 0 / 452.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.3373, allocations: 7.984 kB / 452.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/0.3421, allocations: 2.136 MB / 454.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/0.3421, allocations: 16.25 kB / 454.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007518/0.3429, allocations: 183.7 kB / 455.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.941e-05/0.3429, allocations: 16 kB / 455.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/0.3429, allocations: 24 kB / 455.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.685e-05/0.343, allocations: 15.94 kB / 455.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/0.343, allocations: 16.36 kB / 455.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003015/0.346, allocations: 1.565 MB / 456.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002073/0.3462, allocations: 91.64 kB / 456.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.052e-05/0.3463, allocations: 31.98 kB / 456.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.3468, allocations: 75.98 kB / 456.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.347, allocations: 95.64 kB / 457 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.001e-05/0.3471, allocations: 31.98 kB / 457 MB, free: 13.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.3472, allocations: 151.4 kB / 457.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3472, allocations: 0 / 457.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006936/0.3479, allocations: 124 kB / 457.3 MB, free: 13.26 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: 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.0001731/0.3481, allocations: 134.9 kB / 457.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.3507, allocations: 1.027 MB / 458.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.3507, allocations: 4.062 kB / 458.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009089/0.3516, allocations: 329.9 kB / 458.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009097/0.3525, allocations: 130.8 kB / 458.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.3549, allocations: 1.162 MB / 460.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.3554, allocations: 0.8128 MB / 460.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005047/0.3559, allocations: 103.3 kB / 461 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.3561, allocations: 35.44 kB / 461 MB, free: 9.332 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3561, allocations: 4 kB / 461 MB, free: 9.328 MB / 366.1 MB Notification: Performance of Templates: time 0.01498/0.3711, allocations: 8.833 MB / 469.8 MB, free: 0.5078 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 4.904458688572049]