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.0009964/0.0009964, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.0009585/0.0009585, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 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.9927/0.9927, allocations: 177 MB / 204.8 MB, free: 5.57 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.383e-06/1.383e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.425e-05, allocations: 5.266 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002458/0.002482, allocations: 2.175 MB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.003485, allocations: 0.6703 MB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.003594, allocations: 0 / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004575/0.004052, allocations: 51.58 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.004187, allocations: 55.55 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003203/0.004507, allocations: 127.8 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.004819, allocations: 343.1 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.004971, allocations: 56.53 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003096/0.005281, allocations: 207.4 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.00545, allocations: 123.7 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.952e-05/0.00549, allocations: 32 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.399e-05/0.005524, allocations: 32 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.998e-05/0.005604, allocations: 95.69 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.157e-05/0.005675, allocations: 91.78 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.005909, allocations: 219.2 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.005911, allocations: 0 / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.005913, allocations: 0 / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.005918, allocations: 0 / 277.1 MB, free: 13.19 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.0007108/0.006629, allocations: 0.5972 MB / 277.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.006665, allocations: 15.92 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.058e-05/0.006746, allocations: 56.8 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.006962, allocations: 192.8 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.00714, allocations: 339.8 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.007179, allocations: 20.38 kB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.007556, allocations: 285.4 kB / 278.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.00757, allocations: 7.891 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.007592, allocations: 12 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.0076, allocations: 4 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003432/0.007943, allocations: 214.8 kB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.008988, allocations: 0.8783 MB / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.009347, allocations: 186.9 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.009466, allocations: 75.66 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.009492, allocations: 4 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.00951, allocations: 33.39 kB / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.603e-06/0.009512, allocations: 4 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.00559/0.0151, allocations: 2.845 MB / 282.9 MB, free: 7.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.01514, allocations: 63.89 kB / 282.9 MB, free: 7.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.01529, allocations: 241.8 kB / 283.2 MB, free: 6.836 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/0.01533, allocations: 33.7 kB / 283.2 MB, free: 6.797 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.197e-05/0.01541, allocations: 199.7 kB / 283.4 MB, free: 6.598 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.01552, allocations: 182.4 kB / 283.6 MB, free: 6.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.01566, allocations: 96 kB / 283.7 MB, free: 6.316 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.01578, allocations: 0.5117 MB / 284.2 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.01606, allocations: 205.2 kB / 284.4 MB, free: 5.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.01638, allocations: 285.3 kB / 284.7 MB, free: 5.293 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.01689, allocations: 416.2 kB / 285.1 MB, free: 4.867 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01689, allocations: 0 / 285.1 MB, free: 4.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000719/0.01761, allocations: 0.552 MB / 285.6 MB, free: 4.305 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.01763, allocations: 4 kB / 285.6 MB, free: 4.301 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.01764, allocations: 4 kB / 285.6 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.01766, allocations: 4 kB / 285.6 MB, free: 4.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/0.01811, allocations: 151.9 kB / 285.8 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.01812, allocations: 7.938 kB / 285.8 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.01839, allocations: 71.84 kB / 285.9 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.01843, allocations: 20 kB / 285.9 MB, free: 4.047 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.0001351/0.01856, allocations: 176.5 kB / 286.1 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.01864, allocations: 47.81 kB / 286.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.275e-05/0.01869, allocations: 51.3 kB / 286.2 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.01869, allocations: 8 kB / 286.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.0187, allocations: 4 kB / 286.2 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.0187, allocations: 0 / 286.2 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.02027, allocations: 1.326 MB / 287.5 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.02027, allocations: 8 kB / 287.5 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002848/0.02056, allocations: 127.8 kB / 287.6 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.724e-06/0.02057, allocations: 12 kB / 287.6 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/0.02059, allocations: 20 kB / 287.7 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.049e-05/0.02061, allocations: 20.36 kB / 287.7 MB, free: 2.059 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.02061, allocations: 15.94 kB / 287.7 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007971/0.02141, allocations: 0.8762 MB / 288.6 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.738e-05/0.02151, allocations: 63.81 kB / 288.6 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.072e-05/0.02155, allocations: 23.98 kB / 288.7 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.02176, allocations: 59.94 kB / 288.7 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.02189, allocations: 75.66 kB / 288.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.02191, allocations: 27.98 kB / 288.8 MB, free: 0.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.994e-05/0.02199, allocations: 164.2 kB / 289 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02199, allocations: 0 / 289 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003443/0.02234, allocations: 100 kB / 289.1 MB, free: 0.4922 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.0001316/0.02247, allocations: 122.9 kB / 289.2 MB, free: 372 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.02304, allocations: 427.1 kB / 289.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.02304, allocations: 4 kB / 289.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.02325, allocations: 169.3 kB / 289.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.02363, allocations: 85.03 kB / 289.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.02485, allocations: 0.9696 MB / 290.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.023e-05/0.02492, allocations: 109.6 kB / 290.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002188/0.02514, allocations: 82.81 kB / 291 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.02529, allocations: 36.5 kB / 291.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.02529, allocations: 0 / 291.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of Templates: time 0.007267/0.03255, allocations: 6.494 MB / 297.5 MB, free: 7.879 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.7876636870205402]