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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009622/0.0009622, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001137/0.001137, allocations: 160.2 kB / 24.91 MB, free: 8.766 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.9417/0.9417, allocations: 177 MB / 205.2 MB, free: 5.055 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.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,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=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 273.4 MB, free: 1.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02e-05/1.129e-05, allocations: 5.406 kB / 273.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00219/0.002201, allocations: 2.06 MB / 275.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006558/0.002857, allocations: 0.5257 MB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.776e-05/0.002934, allocations: 7.938 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.003038, allocations: 11.86 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-05/0.003092, allocations: 27.72 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.003295, allocations: 55.8 kB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.003422, allocations: 127.5 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.764e-05/0.003519, allocations: 42.25 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.277e-05/0.003612, allocations: 75.8 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.492e-05/0.003677, allocations: 35.89 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.003699, allocations: 19.94 kB / 276.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.157e-05/0.003711, allocations: 8 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.003734, allocations: 23.91 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.874e-05/0.003773, allocations: 39.91 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.003899, allocations: 87.66 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.0039, allocations: 0 / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003901, allocations: 0 / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.596e-06/0.003904, allocations: 0 / 276.5 MB, free: 13.94 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0002976/0.004202, allocations: 320.5 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.00423, allocations: 15.98 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.004261, allocations: 24.92 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.004387, allocations: 149.5 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.004398, allocations: 8.375 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.004421, allocations: 12.38 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.004628, allocations: 207.6 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.004637, allocations: 8.125 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.004644, allocations: 4.375 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.00465, allocations: 7.938 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.814e-05/0.004698, allocations: 35.91 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002914/0.00499, allocations: 446 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.747e-05/0.005087, allocations: 99.69 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.521e-05/0.005122, allocations: 46.64 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.005136, allocations: 8 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.005154, allocations: 38.5 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.005155, allocations: 0 / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001282/0.005284, allocations: 93.81 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.005326, allocations: 118.7 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.252e-05/0.005378, allocations: 133.6 kB / 278.2 MB, free: 12.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.005388, allocations: 29.7 kB / 278.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.674e-05/0.005425, allocations: 111.9 kB / 278.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.00544, allocations: 23.84 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.672e-05/0.005466, allocations: 25.7 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.468e-05/0.005531, allocations: 326.9 kB / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.909e-06/0.005541, allocations: 8 kB / 278.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.129e-05/0.005572, allocations: 58.8 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.46e-05/0.005627, allocations: 82.89 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.005628, allocations: 0 / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.57e-05/0.005704, allocations: 93.47 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.657e-06/0.005712, allocations: 4 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.005716, allocations: 4 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/0.005725, allocations: 3.984 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.459e-05/0.005789, allocations: 23.94 kB / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.005794, allocations: 11.92 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.965e-05/0.005823, allocations: 11.89 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.005829, allocations: 8.156 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 5.104e-05/0.00588, allocations: 117.8 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.005933, allocations: 65.61 kB / 279.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.202e-05/0.005955, allocations: 16.78 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.005957, allocations: 0 / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.005959, allocations: 4 kB / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.686e-06/0.005962, allocations: 0 / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001063/0.006068, allocations: 97.72 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.006069, allocations: 0 / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.09e-05/0.00614, allocations: 35.92 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.006141, allocations: 4 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.006149, allocations: 4 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.00615, allocations: 0 / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.00615, allocations: 0 / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.006256, allocations: 239.6 kB / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.004e-05/0.006266, allocations: 7.953 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.00628, allocations: 11.98 kB / 279.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.339e-05/0.006333, allocations: 4.062 kB / 279.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.188e-05/0.006355, allocations: 11.92 kB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.006359, allocations: 8 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.565e-05/0.006375, allocations: 20.86 kB / 279.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006375, allocations: 4 kB / 279.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000148/0.006523, allocations: 27.94 kB / 279.7 MB, free: 10.39 MB / 266.7 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 5.381e-05/0.006577, allocations: 76.42 kB / 279.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.373e-05/0.006651, allocations: 52.72 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.006654, allocations: 4 kB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.652e-05/0.00667, allocations: 17.28 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.006886, allocations: 46.77 kB / 279.9 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004528/0.007339, allocations: 319.3 kB / 280.2 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.846e-05/0.007377, allocations: 71.28 kB / 280.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.17e-05/0.007399, allocations: 8.484 kB / 280.3 MB, free: 9.746 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.091e-05/0.00745, allocations: 63.38 kB / 280.4 MB, free: 9.684 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.00745, allocations: 4 kB / 280.4 MB, free: 9.68 MB / 266.7 MB Notification: Performance of Templates: time 0.002385/0.009835, allocations: 1.217 MB / 281.6 MB, free: 8.516 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.5946545591577888]