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.001178/0.001178, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009861/0.0009861, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.053/1.053, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.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 1.964e-06/1.964e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.506e-05, allocations: 2.312 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002746/0.002771, allocations: 2.166 MB / 275.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009611/0.003732, allocations: 0.6664 MB / 275.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.003842, allocations: 7.938 kB / 275.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002771/0.004119, allocations: 43.69 kB / 275.9 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.004258, allocations: 51.56 kB / 276 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.004549, allocations: 127.7 kB / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.004853, allocations: 355.1 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.005006, allocations: 44.56 kB / 276.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003147/0.005321, allocations: 211.5 kB / 276.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.005492, allocations: 123.7 kB / 276.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.213e-05/0.005534, allocations: 28 kB / 276.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.047e-05/0.005564, allocations: 32 kB / 276.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.514e-05/0.00566, allocations: 95.69 kB / 277 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.821e-05/0.005748, allocations: 87.78 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.006035, allocations: 219.2 kB / 277.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.006038, allocations: 4 kB / 277.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.006039, allocations: 4 kB / 277.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.006046, allocations: 0 / 277.3 MB, free: 13.62 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007738/0.006819, allocations: 0.5933 MB / 277.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.006861, allocations: 8.031 kB / 277.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.422e-05/0.006945, allocations: 60.8 kB / 277.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.00718, allocations: 188.8 kB / 278.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.007383, allocations: 339.8 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.007426, allocations: 24.31 kB / 278.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/0.007819, allocations: 285.3 kB / 278.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.007835, allocations: 7.953 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.007857, allocations: 8 kB / 278.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.007867, allocations: 12 kB / 278.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.008215, allocations: 214.8 kB / 279 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009895/0.009205, allocations: 0.8783 MB / 279.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.009565, allocations: 185.3 kB / 280 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.009686, allocations: 75.59 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.009711, allocations: 8 kB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.009735, allocations: 37.39 kB / 280.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.492e-06/0.009737, allocations: 0 / 280.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.005827/0.01556, allocations: 2.844 MB / 283 MB, free: 7.602 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.01561, allocations: 59.89 kB / 283.1 MB, free: 7.531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.01579, allocations: 249.7 kB / 283.3 MB, free: 7.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.01583, allocations: 37.7 kB / 283.3 MB, free: 7.227 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.01592, allocations: 199.8 kB / 283.5 MB, free: 7.027 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.01603, allocations: 186.4 kB / 283.7 MB, free: 6.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.01616, allocations: 92 kB / 283.8 MB, free: 6.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.01629, allocations: 0.5117 MB / 284.3 MB, free: 6.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.01658, allocations: 205.2 kB / 284.5 MB, free: 6.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.0169, allocations: 281.4 kB / 284.8 MB, free: 5.727 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.0174, allocations: 416.3 kB / 285.2 MB, free: 5.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.0174, allocations: 4 kB / 285.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007471/0.01815, allocations: 0.5481 MB / 285.8 MB, free: 4.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.01817, allocations: 8 kB / 285.8 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.01818, allocations: 0 / 285.8 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.01819, allocations: 4 kB / 285.8 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/0.01865, allocations: 155.8 kB / 285.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.01866, allocations: 12.11 kB / 285.9 MB, free: 4.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.01893, allocations: 71.84 kB / 286 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.01897, allocations: 16 kB / 286 MB, free: 4.477 MB / 266.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.000144/0.01911, allocations: 184.5 kB / 286.2 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.406e-05/0.01919, allocations: 43.81 kB / 286.2 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.457e-05/0.01925, allocations: 51.3 kB / 286.3 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.01925, allocations: 4 kB / 286.3 MB, free: 4.191 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.01926, allocations: 4 kB / 286.3 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.01927, allocations: 4 kB / 286.3 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.02114, allocations: 1.318 MB / 287.6 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.02114, allocations: 8 kB / 287.6 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.02144, allocations: 131.8 kB / 287.8 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.02146, allocations: 12 kB / 287.8 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.02148, allocations: 20 kB / 287.8 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.02149, allocations: 15.92 kB / 287.8 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/0.0215, allocations: 15.94 kB / 287.8 MB, free: 2.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009242/0.02243, allocations: 0.8764 MB / 288.7 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.677e-05/0.02252, allocations: 63.81 kB / 288.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.02256, allocations: 23.98 kB / 288.8 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.02278, allocations: 55.94 kB / 288.8 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.02292, allocations: 83.66 kB / 288.9 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.02294, allocations: 27.94 kB / 288.9 MB, free: 1.176 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.464e-05/0.02304, allocations: 168.2 kB / 289.1 MB, free: 1.012 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02304, allocations: 0 / 289.1 MB, free: 1.012 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000304/0.02334, allocations: 96 kB / 289.2 MB, free: 0.918 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.0001511/0.02349, allocations: 123.1 kB / 289.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005979/0.02409, allocations: 431 kB / 289.7 MB, free: 372 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.02409, allocations: 0 / 289.7 MB, free: 372 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.0243, allocations: 164.7 kB / 289.9 MB, free: 208 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.02473, allocations: 87.22 kB / 290 MB, free: 124 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.02623, allocations: 0.9654 MB / 291 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.31e-05/0.02632, allocations: 105.7 kB / 291.1 MB, free: 14.85 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.02654, allocations: 78.88 kB / 291.1 MB, free: 14.78 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.02669, allocations: 40.48 kB / 291.2 MB, free: 14.74 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02669, allocations: 0 / 291.2 MB, free: 14.74 MB / 282.7 MB Notification: Performance of Templates: time 0.007846/0.03453, allocations: 6.14 MB / 297.3 MB, free: 8.672 MB / 282.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.022575431969017]