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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001349, allocations: 103 kB / 17.74 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 188.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 43.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2508, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003043/0.2539, allocations: 1.995 MB / 403.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008054/0.2547, allocations: 0.5064 MB / 403.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.718e-05/0.2548, allocations: 4 kB / 403.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.255, allocations: 15.8 kB / 403.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.955e-05/0.2551, allocations: 27.78 kB / 403.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.2554, allocations: 58.12 kB / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.2555, allocations: 119.6 kB / 404.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.2557, allocations: 57.41 kB / 404.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.795e-05/0.2558, allocations: 47.8 kB / 404.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.2558, allocations: 63.69 kB / 404.3 MB, free: 6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.2559, allocations: 8 kB / 404.3 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.136e-05/0.2559, allocations: 12 kB / 404.3 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.2559, allocations: 23.92 kB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.118e-05/0.256, allocations: 55.67 kB / 404.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.2562, allocations: 123.4 kB / 404.5 MB, free: 5.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2562, allocations: 4 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2562, allocations: 0 / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2562, allocations: 3.938 kB / 404.5 MB, free: 5.777 MB / 318.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.000531/0.2567, allocations: 432.3 kB / 404.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2568, allocations: 8.031 kB / 404.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.2568, allocations: 20.75 kB / 404.9 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.2571, allocations: 200.1 kB / 405.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.2571, allocations: 8.375 kB / 405.1 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.2571, allocations: 12.38 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004337/0.2576, allocations: 250.8 kB / 405.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.2576, allocations: 0 / 405.4 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.2576, allocations: 8 kB / 405.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2576, allocations: 8 kB / 405.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.2579, allocations: 79.88 kB / 405.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005667/0.2584, allocations: 0.592 MB / 406.1 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.2587, allocations: 147.9 kB / 406.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.2588, allocations: 78.58 kB / 406.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.2589, allocations: 4 kB / 406.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.2589, allocations: 34.55 kB / 406.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.2589, allocations: 0 / 406.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004827/0.2594, allocations: 181.4 kB / 406.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.2595, allocations: 110.8 kB / 406.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.732e-05/0.2596, allocations: 126.1 kB / 406.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.2596, allocations: 33.7 kB / 406.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.281e-05/0.2596, allocations: 115.9 kB / 406.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.2597, allocations: 27.64 kB / 406.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.825e-05/0.2597, allocations: 37.67 kB / 407 MB, free: 3.016 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.2598, allocations: 322.9 kB / 407.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.2599, allocations: 36.34 kB / 407.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.2601, allocations: 132.1 kB / 407.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.2603, allocations: 176.7 kB / 407.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2604, allocations: 4 kB / 407.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000338/0.2607, allocations: 189.6 kB / 407.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2607, allocations: 4 kB / 407.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2607, allocations: 4.234 kB / 407.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.2608, allocations: 7.938 kB / 407.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.2609, allocations: 47.91 kB / 407.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.2609, allocations: 7.938 kB / 407.9 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.527e-05/0.261, allocations: 23.83 kB / 407.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.2611, allocations: 11.98 kB / 407.9 MB, free: 1.965 MB / 318.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.834e-05/0.2612, allocations: 130.5 kB / 408 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.2613, allocations: 81.59 kB / 408.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.2613, allocations: 16.66 kB / 408.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2614, allocations: 4 kB / 408.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2614, allocations: 0 / 408.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2614, allocations: 0 / 408.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.2616, allocations: 209.4 kB / 408.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2616, allocations: 4 kB / 408.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.2618, allocations: 31.97 kB / 408.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2618, allocations: 0 / 408.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.2618, allocations: 19.94 kB / 408.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.2618, allocations: 0 / 408.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2618, allocations: 3.938 kB / 408.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004467/0.2623, allocations: 373.7 kB / 408.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.2623, allocations: 89.03 kB / 408.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.2624, allocations: 11.94 kB / 408.9 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.2625, allocations: 4 kB / 408.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.2625, allocations: 3.984 kB / 408.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.2626, allocations: 8 kB / 408.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.159e-05/0.2626, allocations: 95.27 kB / 409 MB, free: 0.793 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2626, allocations: 0 / 409 MB, free: 0.793 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.2629, allocations: 31.84 kB / 409 MB, free: 0.7617 MB / 318.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.0001266/0.2631, allocations: 111.2 kB / 409.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002901/0.2634, allocations: 115.8 kB / 409.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2634, allocations: 0.875 kB / 409.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.637e-05/0.2635, allocations: 32.02 kB / 409.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.2639, allocations: 55.88 kB / 409.3 MB, free: 456 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006611/0.2646, allocations: 420.1 kB / 409.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.2648, allocations: 0.72 MB / 410.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.2649, allocations: 11.44 kB / 410.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2649, allocations: 0 / 410.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of Templates: time 0.002865/0.2678, allocations: 1.503 MB / 412 MB, free: 13.74 MB / 334.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches