Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 178.8 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 223.3 MB / 241 MB, free: 10.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007847/0.0007848, allocations: 89.14 kB / 292.2 MB, free: 10.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002751, allocations: 4 kB / 351.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2106, allocations: 50.41 MB / 402.2 MB, free: 32.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001645/0.2123, allocations: 1.66 MB / 403.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005954/0.2129, allocations: 486.8 kB / 404.3 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.804e-05/0.213, allocations: 3.938 kB / 404.3 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.525e-05/0.2131, allocations: 11.92 kB / 404.4 MB, free: 30.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.674e-05/0.2131, allocations: 22.06 kB / 404.4 MB, free: 30.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.2134, allocations: 55.88 kB / 404.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.2135, allocations: 107.6 kB / 404.5 MB, free: 30.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.2136, allocations: 42.77 kB / 404.6 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.868e-05/0.2137, allocations: 31.86 kB / 404.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.291e-05/0.2137, allocations: 47.77 kB / 404.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.2138, allocations: 11.53 kB / 404.7 MB, free: 30.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.2138, allocations: 4 kB / 404.7 MB, free: 30.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.2138, allocations: 19.92 kB / 404.7 MB, free: 30.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.446e-05/0.2138, allocations: 41.64 kB / 404.7 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.307e-05/0.2139, allocations: 89.31 kB / 404.8 MB, free: 29.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2139, allocations: 3.984 kB / 404.8 MB, free: 29.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2139, allocations: 0 / 404.8 MB, free: 29.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.214, allocations: 4 kB / 404.8 MB, free: 29.89 MB / 298.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.0004223/0.2144, allocations: 408.8 kB / 405.2 MB, free: 29.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.2144, allocations: 8.031 kB / 405.2 MB, free: 29.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.631e-05/0.2145, allocations: 23.77 kB / 405.3 MB, free: 29.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.2146, allocations: 198.9 kB / 405.4 MB, free: 29.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2146, allocations: 12 kB / 405.5 MB, free: 29.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.889e-05/0.2147, allocations: 12 kB / 405.5 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004125/0.2151, allocations: 238.5 kB / 405.7 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2151, allocations: 4 kB / 405.7 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.2151, allocations: 7.953 kB / 405.7 MB, free: 28.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.2151, allocations: 0 / 405.7 MB, free: 28.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002304/0.2154, allocations: 107.8 kB / 405.8 MB, free: 28.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004697/0.2159, allocations: 0.5804 MB / 406.4 MB, free: 28.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.2161, allocations: 159.8 kB / 406.6 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.2162, allocations: 74.64 kB / 406.6 MB, free: 27.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.2163, allocations: 4 kB / 406.6 MB, free: 27.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.535e-05/0.2163, allocations: 42.56 kB / 406.7 MB, free: 27.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.984e-06/0.2163, allocations: 4 kB / 406.7 MB, free: 27.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004402/0.2167, allocations: 185.5 kB / 406.9 MB, free: 27.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.2168, allocations: 118.7 kB / 407 MB, free: 27.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.748e-05/0.2169, allocations: 130 kB / 407.1 MB, free: 27.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.789e-06/0.2169, allocations: 25.7 kB / 407.1 MB, free: 27.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.935e-05/0.2169, allocations: 108 kB / 407.2 MB, free: 27.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.2169, allocations: 32 kB / 407.3 MB, free: 27.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-06/0.217, allocations: 8 kB / 407.3 MB, free: 27.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.646e-05/0.217, allocations: 322.8 kB / 407.6 MB, free: 26.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.2171, allocations: 44 kB / 407.6 MB, free: 26.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.2172, allocations: 142.8 kB / 407.8 MB, free: 26.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.2174, allocations: 59.92 kB / 407.8 MB, free: 26.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2174, allocations: 4 kB / 407.8 MB, free: 26.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003004/0.2177, allocations: 197.6 kB / 408 MB, free: 26.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2177, allocations: 8.031 kB / 408 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2177, allocations: 4 kB / 408 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.2177, allocations: 8 kB / 408 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.2179, allocations: 43.88 kB / 408.1 MB, free: 26.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2179, allocations: 11.98 kB / 408.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.507e-05/0.218, allocations: 19.84 kB / 408.1 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.218, allocations: 8 kB / 408.1 MB, free: 26.25 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.705e-05/0.2181, allocations: 129.8 kB / 408.3 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.2182, allocations: 85.53 kB / 408.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.2183, allocations: 16.7 kB / 408.4 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2183, allocations: 4 kB / 408.4 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2183, allocations: 3.953 kB / 408.4 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2183, allocations: 4 kB / 408.4 MB, free: 25.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.2185, allocations: 205.5 kB / 408.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2185, allocations: 0 / 408.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.2187, allocations: 35.92 kB / 408.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2187, allocations: 7.938 kB / 408.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.2187, allocations: 11.98 kB / 408.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2187, allocations: 0 / 408.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2187, allocations: 0 / 408.6 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.2191, allocations: 388.3 kB / 409 MB, free: 25.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.2192, allocations: 85.05 kB / 409.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.2192, allocations: 4 kB / 409.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.2193, allocations: 20.05 kB / 409.1 MB, free: 25.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.322e-05/0.2194, allocations: 3.984 kB / 409.1 MB, free: 25.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.2194, allocations: 4 kB / 409.1 MB, free: 25.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.313e-05/0.2194, allocations: 103.2 kB / 409.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2194, allocations: 0 / 409.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002747/0.2197, allocations: 31.84 kB / 409.2 MB, free: 25.02 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.873e-05/0.2198, allocations: 99.25 kB / 409.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003047/0.2201, allocations: 132 kB / 409.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2201, allocations: 0.875 kB / 409.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.582e-05/0.2202, allocations: 40 kB / 409.5 MB, free: 24.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.2207, allocations: 53.12 kB / 409.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005553/0.2212, allocations: 498 kB / 410.1 MB, free: 24.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.2214, allocations: 0.7165 MB / 410.8 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.321e-05/0.2214, allocations: 11.44 kB / 410.8 MB, free: 23.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2214, allocations: 0 / 410.8 MB, free: 23.42 MB / 298.7 MB Notification: Performance of Templates: time 0.002306/0.2237, allocations: 1.468 MB / 412.2 MB, free: 21.97 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches