Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002222/0.002222, allocations: 210.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3062, allocations: 50.55 MB / 409.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003569/0.3099, allocations: 2.003 MB / 411.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.3109, allocations: 0.5415 MB / 412.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.311, allocations: 4 kB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.3112, allocations: 15.8 kB / 412.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.576e-05/0.3112, allocations: 27.72 kB / 412.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.3116, allocations: 55.88 kB / 412.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.3117, allocations: 115.6 kB / 412.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.3119, allocations: 57.39 kB / 412.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.337e-05/0.312, allocations: 47.8 kB / 412.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.87e-05/0.3121, allocations: 55.77 kB / 412.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.3121, allocations: 8 kB / 412.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.358e-05/0.3122, allocations: 15.94 kB / 412.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.977e-05/0.3122, allocations: 27.91 kB / 412.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.105e-05/0.3123, allocations: 63.67 kB / 412.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.3125, allocations: 120.8 kB / 413.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3125, allocations: 0 / 413.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3125, allocations: 0 / 413.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.3125, allocations: 4 kB / 413.1 MB, free: 14.6 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006796/0.3132, allocations: 425.9 kB / 413.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3133, allocations: 11.97 kB / 413.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.3133, allocations: 20.73 kB / 413.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.3136, allocations: 208.1 kB / 413.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.3136, allocations: 8.375 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.3137, allocations: 12.38 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.3142, allocations: 246.9 kB / 414 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.3142, allocations: 3.906 kB / 414 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.3143, allocations: 7.984 kB / 414 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3143, allocations: 3.938 kB / 414 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002544/0.3145, allocations: 87.88 kB / 414.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000698/0.3152, allocations: 0.5843 MB / 414.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.3155, allocations: 151.9 kB / 414.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.3157, allocations: 70.64 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.3157, allocations: 7.938 kB / 414.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.3158, allocations: 34.56 kB / 414.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.512e-06/0.3158, allocations: 4 kB / 414.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005346/0.3163, allocations: 173.3 kB / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.23e-05/0.3164, allocations: 110.8 kB / 415.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.3165, allocations: 130.1 kB / 415.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3166, allocations: 29.7 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9e-05/0.3167, allocations: 119.8 kB / 415.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.3167, allocations: 31.62 kB / 415.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/0.3168, allocations: 37.7 kB / 415.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3169, allocations: 318.8 kB / 415.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.317, allocations: 35.97 kB / 415.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.3172, allocations: 128.8 kB / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.3175, allocations: 181 kB / 416.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3175, allocations: 4 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003631/0.3179, allocations: 189.2 kB / 416.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.3179, allocations: 4 kB / 416.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.318, allocations: 7.938 kB / 416.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.318, allocations: 7.938 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.3182, allocations: 44.36 kB / 416.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.3182, allocations: 11.98 kB / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.3183, allocations: 19.84 kB / 416.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.3183, allocations: 12 kB / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001171/0.3184, allocations: 129.8 kB / 416.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.3186, allocations: 81.77 kB / 416.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.3186, allocations: 20.64 kB / 416.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-06/0.3187, allocations: 4 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.3187, allocations: 0 / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3187, allocations: 4 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.319, allocations: 209.5 kB / 416.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.319, allocations: 0 / 416.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.3192, allocations: 43.84 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3192, allocations: 0 / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.3192, allocations: 7.938 kB / 417 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3192, allocations: 0 / 417 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3192, allocations: 0 / 417 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005579/0.3198, allocations: 375.1 kB / 417.3 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.38e-05/0.3198, allocations: 85.05 kB / 417.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.3199, allocations: 7.922 kB / 417.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.32, allocations: 19.94 kB / 417.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.3201, allocations: 3.984 kB / 417.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.3201, allocations: 8.062 kB / 417.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.328e-05/0.3201, allocations: 102.2 kB / 417.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3201, allocations: 0 / 417.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.3205, allocations: 31.84 kB / 417.6 MB, free: 9.562 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001402/0.3206, allocations: 99.25 kB / 417.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000339/0.321, allocations: 120.3 kB / 417.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.321, allocations: 0 / 417.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.3211, allocations: 31.91 kB / 417.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.3216, allocations: 48.05 kB / 417.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007502/0.3224, allocations: 416.1 kB / 418.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.3227, allocations: 0.7084 MB / 419 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-05/0.3228, allocations: 23.42 kB / 419 MB, free: 8.059 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3228, allocations: 0 / 419 MB, free: 8.059 MB / 334.1 MB Notification: Performance of Templates: time 0.003163/0.3259, allocations: 1.494 MB / 420.5 MB, free: 6.574 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches