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.001709/0.001709, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002119/0.002119, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.001745/0.001745, allocations: 43.94 kB / 378.2 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3377, allocations: 53.37 MB / 431.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004656/0.3424, allocations: 2.36 MB / 434 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.3442, allocations: 0.8144 MB / 434.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.3444, allocations: 11.88 kB / 434.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003405/0.3447, allocations: 47.62 kB / 434.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.345, allocations: 63.5 kB / 434.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005775/0.3455, allocations: 179.6 kB / 435.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.346, allocations: 371.6 kB / 435.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.3462, allocations: 67.8 kB / 435.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003612/0.3466, allocations: 179.4 kB / 435.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003099/0.3469, allocations: 175.3 kB / 435.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.347, allocations: 36 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.526e-05/0.347, allocations: 35.94 kB / 435.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.3472, allocations: 91.73 kB / 436 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.3473, allocations: 147.3 kB / 436.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004813/0.3478, allocations: 327.9 kB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3478, allocations: 0 / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3478, allocations: 3.938 kB / 436.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.3478, allocations: 0 / 436.5 MB, free: 2.039 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.001329/0.3492, allocations: 0.5405 MB / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3492, allocations: 8.031 kB / 437 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.113e-05/0.3493, allocations: 40.75 kB / 437.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.3498, allocations: 212.1 kB / 437.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003835/0.3502, allocations: 351.9 kB / 437.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.987e-05/0.3502, allocations: 32.31 kB / 437.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.3515, allocations: 0.5463 MB / 438.2 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3515, allocations: 0 / 438.2 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.3516, allocations: 12 kB / 438.2 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.3516, allocations: 8 kB / 438.2 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.353, allocations: 0.512 MB / 438.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.3547, allocations: 0.949 MB / 439.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.3564, allocations: 482.5 kB / 440.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006608/0.3571, allocations: 231.4 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.882e-05/0.3571, allocations: 20.08 kB / 440.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.3572, allocations: 38.5 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.924e-06/0.3572, allocations: 4 kB / 440.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03959/0.3968, allocations: 5.722 MB / 446.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001958/0.397, allocations: 149.3 kB / 446.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.3973, allocations: 200 kB / 446.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.44e-05/0.3974, allocations: 33.7 kB / 446.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.3975, allocations: 145.8 kB / 446.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.3978, allocations: 202.3 kB / 446.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003283/0.3982, allocations: 110.6 kB / 447 MB, free: 7.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002339/0.3984, allocations: 342.8 kB / 447.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/0.4001, allocations: 0.6188 MB / 447.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/0.4019, allocations: 0.7963 MB / 448.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003181/0.4051, allocations: 1.252 MB / 450 MB, free: 4.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.4051, allocations: 0 / 450 MB, free: 4.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003811/0.4089, allocations: 1.398 MB / 451.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.4089, allocations: 11.94 kB / 451.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.4089, allocations: 4 kB / 451.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.409, allocations: 8 kB / 451.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.4104, allocations: 215.8 kB / 451.6 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.099e-05/0.4104, allocations: 11.94 kB / 451.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009793/0.4114, allocations: 103.7 kB / 451.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-05/0.4114, allocations: 27.98 kB / 451.8 MB, free: 2.258 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.0003928/0.4118, allocations: 181.6 kB / 451.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003764/0.4122, allocations: 157.4 kB / 452.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/0.4124, allocations: 55.31 kB / 452.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.4124, allocations: 8 kB / 452.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.4124, allocations: 4 kB / 452.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.4124, allocations: 3.984 kB / 452.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005123/0.4175, allocations: 2.14 MB / 454.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.538e-05/0.4176, allocations: 19.94 kB / 454.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/0.4184, allocations: 187.9 kB / 454.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.895e-05/0.4184, allocations: 12 kB / 454.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.4184, allocations: 24 kB / 454.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.518e-05/0.4185, allocations: 19.94 kB / 454.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.008e-05/0.4185, allocations: 19.88 kB / 454.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003436/0.4219, allocations: 1.549 MB / 456.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.4221, allocations: 95.64 kB / 456.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.171e-05/0.4222, allocations: 27.98 kB / 456.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005851/0.4228, allocations: 79.98 kB / 456.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.423, allocations: 95.64 kB / 456.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.493e-05/0.4231, allocations: 31.98 kB / 456.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001581/0.4232, allocations: 151.4 kB / 456.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4232, allocations: 0 / 456.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007493/0.424, allocations: 120 kB / 456.7 MB, free: 12.96 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.0002061/0.4242, allocations: 134.9 kB / 456.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.427, allocations: 1.03 MB / 457.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/0.427, allocations: 4.312 kB / 457.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.428, allocations: 337.8 kB / 458.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009082/0.4289, allocations: 116.5 kB / 458.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.4314, allocations: 1.17 MB / 459.5 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.4318, allocations: 0.8128 MB / 460.3 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004716/0.4323, allocations: 103.3 kB / 460.4 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.4326, allocations: 35.44 kB / 460.4 MB, free: 9.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4326, allocations: 0 / 460.4 MB, free: 9.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01583/0.4484, allocations: 8.823 MB / 469.3 MB, free: 208 kB / 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/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_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: 5.326477039139718]