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.001261/0.001261, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001164, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 63.89 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3276, allocations: 50.55 MB / 409.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003273/0.3309, allocations: 2.01 MB / 411.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.3319, allocations: 0.5376 MB / 411.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.332, allocations: 0 / 411.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.3321, allocations: 19.8 kB / 411.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.097e-05/0.3322, allocations: 19.73 kB / 411.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.3325, allocations: 59.88 kB / 411.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.3327, allocations: 123.6 kB / 412 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.3328, allocations: 53.41 kB / 412 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.466e-05/0.3329, allocations: 47.84 kB / 412.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.943e-05/0.333, allocations: 55.7 kB / 412.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.333, allocations: 12 kB / 412.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.892e-05/0.3331, allocations: 12 kB / 412.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.694e-05/0.3331, allocations: 27.91 kB / 412.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.572e-05/0.3332, allocations: 55.67 kB / 412.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.3334, allocations: 132.7 kB / 412.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3334, allocations: 0 / 412.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3334, allocations: 0 / 412.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3334, allocations: 0 / 412.4 MB, free: 14.57 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.000579/0.334, allocations: 419.1 kB / 412.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.334, allocations: 12.03 kB / 412.8 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.281e-05/0.3341, allocations: 16.73 kB / 412.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.3343, allocations: 211.5 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.3343, allocations: 8.375 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.3344, allocations: 12.38 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.3348, allocations: 250.8 kB / 413.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3349, allocations: 3.906 kB / 413.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.3349, allocations: 7.938 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3349, allocations: 4 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002338/0.3351, allocations: 95.8 kB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005943/0.3357, allocations: 0.5765 MB / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.336, allocations: 155.9 kB / 414.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.3362, allocations: 74.62 kB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.3362, allocations: 0 / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.3362, allocations: 42.5 kB / 414.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.3363, allocations: 4 kB / 414.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004722/0.3367, allocations: 169.4 kB / 414.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.3368, allocations: 114.8 kB / 414.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.454e-05/0.3369, allocations: 126.1 kB / 414.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.3369, allocations: 29.7 kB / 414.7 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.745e-05/0.337, allocations: 123.8 kB / 414.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.337, allocations: 31.62 kB / 414.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.713e-05/0.3371, allocations: 33.7 kB / 414.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3372, allocations: 322.8 kB / 415.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.3373, allocations: 31.98 kB / 415.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.3375, allocations: 131.2 kB / 415.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.3377, allocations: 184.6 kB / 415.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3377, allocations: 0 / 415.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003328/0.3381, allocations: 185.2 kB / 415.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3381, allocations: 14.8 kB / 415.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3381, allocations: 4 kB / 415.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3381, allocations: 7.938 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.3383, allocations: 39.92 kB / 415.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.3383, allocations: 4.812 kB / 415.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.669e-05/0.3384, allocations: 31.83 kB / 415.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.3385, allocations: 8 kB / 415.8 MB, free: 10.76 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 8.935e-05/0.3386, allocations: 125.8 kB / 415.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3387, allocations: 85.47 kB / 416 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.3388, allocations: 24.64 kB / 416 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3388, allocations: 0 / 416 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3388, allocations: 4.234 kB / 416 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.3388, allocations: 0 / 416 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.339, allocations: 209.5 kB / 416.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.339, allocations: 3.984 kB / 416.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.3392, allocations: 35.98 kB / 416.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3392, allocations: 3.938 kB / 416.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.3392, allocations: 11.92 kB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.3392, allocations: 0 / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3392, allocations: 3.938 kB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000456/0.3397, allocations: 367.5 kB / 416.7 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.3398, allocations: 85.05 kB / 416.7 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.3398, allocations: 7.938 kB / 416.8 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.3399, allocations: 7.984 kB / 416.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.34, allocations: 8 kB / 416.8 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.34, allocations: 11.98 kB / 416.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.649e-05/0.34, allocations: 102.6 kB / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.34, allocations: 0 / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.3403, allocations: 31.84 kB / 416.9 MB, free: 9.543 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 8.918e-05/0.3404, allocations: 107.2 kB / 417 MB, free: 9.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.3408, allocations: 116.5 kB / 417.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3408, allocations: 0 / 417.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.808e-05/0.3409, allocations: 31.97 kB / 417.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004474/0.3413, allocations: 48.31 kB / 417.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006316/0.342, allocations: 386.2 kB / 417.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.3423, allocations: 0.7123 MB / 418.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.51e-05/0.3423, allocations: 24.52 kB / 418.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.403e-05/0.3424, allocations: 15.44 kB / 418.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3424, allocations: 0 / 418.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of Templates: time 0.003681/0.3461, allocations: 1.177 MB / 419.5 MB, free: 6.914 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches