Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001261/0.001261, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002021/0.003282, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00121/0.00121, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001533/0.002743, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.164/1.164, allocations: 177.2 MB / 189.8 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.094/1.258, allocations: 53.66 MB / 243.4 MB, free: 15.49 MB / 250.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.335e-05/1.548e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002866/0.002881, allocations: 2.22 MB / 246.9 MB, free: 11.99 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009975/0.003879, allocations: 0.6857 MB / 247.6 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.004009, allocations: 4 kB / 247.6 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.004214, allocations: 51.5 kB / 247.6 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.004343, allocations: 47.64 kB / 247.7 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.004625, allocations: 127.7 kB / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.004945, allocations: 335.2 kB / 248.1 MB, free: 10.74 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.005106, allocations: 54.53 kB / 248.2 MB, free: 10.69 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000347/0.005453, allocations: 239.4 kB / 248.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.00565, allocations: 123.7 kB / 248.6 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.183e-05/0.005692, allocations: 28 kB / 248.6 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.803e-05/0.00573, allocations: 32 kB / 248.6 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.238e-05/0.005822, allocations: 67.8 kB / 248.7 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/0.005893, allocations: 67.86 kB / 248.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.006166, allocations: 183.4 kB / 248.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.195e-05/0.006178, allocations: 0 / 248.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.006179, allocations: 0 / 248.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.006194, allocations: 8 kB / 248.9 MB, free: 9.957 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008188/0.007012, allocations: 0.511 MB / 249.4 MB, free: 9.422 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.00706, allocations: 16.03 kB / 249.5 MB, free: 9.406 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.547e-05/0.007146, allocations: 48.91 kB / 249.5 MB, free: 9.359 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.007384, allocations: 165.9 kB / 249.7 MB, free: 9.172 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/0.007606, allocations: 339.8 kB / 250 MB, free: 8.773 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.007653, allocations: 24.36 kB / 250 MB, free: 8.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.007992, allocations: 266.5 kB / 250.3 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.008005, allocations: 0 / 250.3 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.198e-05/0.008027, allocations: 8 kB / 250.3 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.008034, allocations: 4 kB / 250.3 MB, free: 8.465 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.008293, allocations: 164.1 kB / 250.5 MB, free: 8.301 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009054/0.009199, allocations: 0.6162 MB / 251.1 MB, free: 7.656 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.009557, allocations: 204 kB / 251.3 MB, free: 7.445 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.319e-05/0.00965, allocations: 60.77 kB / 251.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.009679, allocations: 4 kB / 251.3 MB, free: 7.379 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.009707, allocations: 42.56 kB / 251.4 MB, free: 7.328 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 2.094e-06/0.009709, allocations: 0 / 251.4 MB, free: 7.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=53): time 0.007253/0.01696, allocations: 3.354 MB / 254.7 MB, free: 3.922 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.017, allocations: 55.91 kB / 254.8 MB, free: 3.852 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.01713, allocations: 183.8 kB / 255 MB, free: 3.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.01717, allocations: 29.7 kB / 255 MB, free: 3.625 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.01725, allocations: 156.9 kB / 255.1 MB, free: 3.469 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.01737, allocations: 186.3 kB / 255.3 MB, free: 3.285 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/0.0175, allocations: 90.3 kB / 255.4 MB, free: 3.191 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.0176, allocations: 338.7 kB / 255.7 MB, free: 2.852 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.01778, allocations: 140.1 kB / 255.9 MB, free: 2.711 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.01799, allocations: 191.3 kB / 256.1 MB, free: 2.512 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.01835, allocations: 339.6 kB / 256.4 MB, free: 2.164 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.01835, allocations: 4 kB / 256.4 MB, free: 2.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004756/0.01883, allocations: 393.2 kB / 256.8 MB, free: 1.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.01885, allocations: 4 kB / 256.8 MB, free: 1.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.01886, allocations: 0 / 256.8 MB, free: 1.766 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.01888, allocations: 4 kB / 256.8 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.01941, allocations: 174.5 kB / 257 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.01942, allocations: 4 kB / 257 MB, free: 1.59 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.01966, allocations: 72.03 kB / 257 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.01969, allocations: 12 kB / 257.1 MB, free: 1.508 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001401/0.01983, allocations: 144.5 kB / 257.2 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.0199, allocations: 31.97 kB / 257.2 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.018e-05/0.01997, allocations: 55.3 kB / 257.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.01997, allocations: 4 kB / 257.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.01998, allocations: 0 / 257.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.01999, allocations: 0 / 257.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.02132, allocations: 1.028 MB / 258.3 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.02133, allocations: 12.03 kB / 258.3 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00034/0.02167, allocations: 143.8 kB / 258.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.043e-05/0.02175, allocations: 47.72 kB / 258.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.02176, allocations: 12 kB / 258.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.02179, allocations: 19.94 kB / 258.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.556e-06/0.02179, allocations: 11.98 kB / 258.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.0218, allocations: 15.94 kB / 258.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007438/0.02255, allocations: 0.6815 MB / 259.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.02258, allocations: 23.98 kB / 259.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.02278, allocations: 55.95 kB / 259.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.0229, allocations: 83.64 kB / 259.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.02292, allocations: 24 kB / 259.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.75e-05/0.02297, allocations: 45.06 kB / 259.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02297, allocations: 0 / 259.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002657/0.02324, allocations: 100 kB / 259.6 MB, free: 14.7 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001301/0.02337, allocations: 112.2 kB / 259.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004226/0.02379, allocations: 348.9 kB / 260 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/0.0238, allocations: 4 kB / 260 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002169/0.02402, allocations: 191.5 kB / 260.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004442/0.02446, allocations: 300.1 kB / 260.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.02669, allocations: 0.966 MB / 261.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.426e-05/0.02676, allocations: 113.6 kB / 261.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.02697, allocations: 67.2 kB / 261.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.0272, allocations: 95.38 kB / 261.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.0272, allocations: 3.938 kB / 261.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Templates: time 0.007769/0.03497, allocations: 6.687 MB / 268.4 MB, free: 5.715 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.794771332293749]