Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001069/0.001069, allocations: 84.25 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001129/0.001129, allocations: 162.6 kB / 25.61 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9909/0.9909, allocations: 177 MB / 205.9 MB, free: 4.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.289e-05/1.424e-05, allocations: 4.5 kB / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.008847/0.008861, allocations: 2.158 MB / 276.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.009919, allocations: 0.6766 MB / 276.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.01003, allocations: 4 kB / 276.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.01027, allocations: 39.64 kB / 277 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.01041, allocations: 56.44 kB / 277 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003354/0.01376, allocations: 134 kB / 277.1 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.0141, allocations: 343.1 kB / 277.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.01424, allocations: 44.56 kB / 277.5 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.01454, allocations: 216.2 kB / 277.7 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.01472, allocations: 127.6 kB / 277.9 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.209e-05/0.01476, allocations: 32 kB / 277.9 MB, free: 492 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.809e-05/0.0148, allocations: 32 kB / 277.9 MB, free: 460 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-05/0.01488, allocations: 87.7 kB / 278 MB, free: 372 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.696e-05/0.01496, allocations: 91.78 kB / 278.1 MB, free: 280 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002426/0.0152, allocations: 219.3 kB / 278.3 MB, free: 60 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.0152, allocations: 7.938 kB / 278.3 MB, free: 52 kB / 250.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.0152, allocations: 0 / 278.3 MB, free: 52 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.01521, allocations: 0 / 278.3 MB, free: 52 kB / 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.000793/0.016, allocations: 0.5933 MB / 278.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.01603, allocations: 8.031 kB / 278.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.609e-05/0.01612, allocations: 52.8 kB / 279 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.01635, allocations: 192.7 kB / 279.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003215/0.01956, allocations: 347.8 kB / 279.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.555e-05/0.01961, allocations: 20.38 kB / 279.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003948/0.02, allocations: 257.3 kB / 279.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.02002, allocations: 0 / 279.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.02004, allocations: 11.98 kB / 279.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.02005, allocations: 8 kB / 279.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003398/0.02039, allocations: 181.2 kB / 280 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.02149, allocations: 0.8476 MB / 280.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.02186, allocations: 162.9 kB / 281 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.02197, allocations: 67.72 kB / 281 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.02199, allocations: 4 kB / 281 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.02202, allocations: 37.39 kB / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.005e-06/0.02202, allocations: 3.984 kB / 281.1 MB, free: 13.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.01574/0.03776, allocations: 2.696 MB / 283.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.03779, allocations: 59.91 kB / 283.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.03795, allocations: 237.7 kB / 284.1 MB, free: 10 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.03799, allocations: 37.7 kB / 284.1 MB, free: 9.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.94e-05/0.03807, allocations: 191.7 kB / 284.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.0382, allocations: 194.3 kB / 284.5 MB, free: 9.574 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.03838, allocations: 87.97 kB / 284.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.03851, allocations: 0.5234 MB / 285.1 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/0.03877, allocations: 165.2 kB / 285.3 MB, free: 8.785 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.03907, allocations: 237.3 kB / 285.5 MB, free: 8.535 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.03955, allocations: 336.2 kB / 285.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.03955, allocations: 0 / 285.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007488/0.0403, allocations: 481.3 kB / 286.3 MB, free: 7.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.04032, allocations: 12.12 kB / 286.3 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.04032, allocations: 7.984 kB / 286.3 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.04034, allocations: 4 kB / 286.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003597/0.04393, allocations: 147.8 kB / 286.5 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.04394, allocations: 4 kB / 286.5 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.04431, allocations: 71.91 kB / 286.5 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.416e-05/0.04436, allocations: 12 kB / 286.5 MB, free: 7.453 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.0001733/0.04453, allocations: 192.3 kB / 286.7 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.04463, allocations: 47.81 kB / 286.8 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.805e-05/0.0447, allocations: 51.3 kB / 286.8 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.04471, allocations: 4 kB / 286.8 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.04471, allocations: 0 / 286.8 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.04472, allocations: 3.984 kB / 286.8 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004834/0.04955, allocations: 1.264 MB / 288.1 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.04956, allocations: 11.98 kB / 288.1 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/0.04994, allocations: 128.6 kB / 288.2 MB, free: 5.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.298e-06/0.04995, allocations: 16 kB / 288.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.04998, allocations: 16 kB / 288.3 MB, free: 5.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.04999, allocations: 15.98 kB / 288.3 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.05, allocations: 11.94 kB / 288.3 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008595/0.05086, allocations: 0.8437 MB / 289.1 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.05097, allocations: 59.81 kB / 289.2 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/0.05102, allocations: 23.98 kB / 289.2 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.05134, allocations: 55.94 kB / 289.3 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/0.05147, allocations: 79.62 kB / 289.4 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.0515, allocations: 23.98 kB / 289.4 MB, free: 4.258 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.384e-05/0.05158, allocations: 160.2 kB / 289.5 MB, free: 4.102 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.05158, allocations: 0 / 289.5 MB, free: 4.102 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004196/0.052, allocations: 96 kB / 289.6 MB, free: 4.008 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.0001201/0.05212, allocations: 131 kB / 289.8 MB, free: 3.867 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.05424, allocations: 367 kB / 290.1 MB, free: 3.508 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.05425, allocations: 0 / 290.1 MB, free: 3.508 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.05447, allocations: 153.2 kB / 290.3 MB, free: 3.355 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.05499, allocations: 88.56 kB / 290.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.05637, allocations: 0.9588 MB / 291.3 MB, free: 2.133 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.612e-05/0.05646, allocations: 109.6 kB / 291.4 MB, free: 2.008 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002841/0.05674, allocations: 66.91 kB / 291.5 MB, free: 1.945 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.05702, allocations: 122.2 kB / 291.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.05702, allocations: 0 / 291.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of Templates: time 0.009484/0.06651, allocations: 6.819 MB / 298.4 MB, free: 11.1 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.933693283703178]