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.001534/0.001534, allocations: 109.9 kB / 17.74 MB, free: 5.34 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.001669/0.001669, allocations: 189.5 kB / 18.66 MB, free: 4.422 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.487/1.487, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001152, allocations: 51.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3646, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003965/0.3687, allocations: 2.001 MB / 403.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3698, allocations: 0.5064 MB / 403.9 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.3699, allocations: 7.938 kB / 403.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.3701, allocations: 15.8 kB / 403.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.657e-05/0.3702, allocations: 23.78 kB / 403.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.3706, allocations: 62.44 kB / 404 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002318/0.3708, allocations: 115.6 kB / 404.1 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.371, allocations: 65.39 kB / 404.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.916e-05/0.3711, allocations: 43.8 kB / 404.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3712, allocations: 59.7 kB / 404.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.3713, allocations: 12 kB / 404.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.377e-05/0.3713, allocations: 8 kB / 404.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.863e-05/0.3713, allocations: 23.92 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.365e-05/0.3714, allocations: 63.66 kB / 404.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.3717, allocations: 128.6 kB / 404.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3717, allocations: 0 / 404.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3717, allocations: 0 / 404.5 MB, free: 5.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.3717, allocations: 0 / 404.5 MB, free: 5.762 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.0007374/0.3725, allocations: 423 kB / 404.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.3725, allocations: 8.031 kB / 404.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.718e-05/0.3726, allocations: 20.75 kB / 404.9 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.3729, allocations: 196.2 kB / 405.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.373, allocations: 16.31 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.373, allocations: 12.38 kB / 405.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.3736, allocations: 250.8 kB / 405.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.3736, allocations: 4 kB / 405.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.3736, allocations: 4 kB / 405.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3736, allocations: 4 kB / 405.4 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.3739, allocations: 83.88 kB / 405.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007242/0.3746, allocations: 0.5842 MB / 406.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/0.3749, allocations: 155.9 kB / 406.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.3751, allocations: 70.64 kB / 406.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.3751, allocations: 4 kB / 406.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.3752, allocations: 38.5 kB / 406.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.3752, allocations: 0 / 406.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005127/0.3757, allocations: 181.3 kB / 406.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.671e-05/0.3758, allocations: 114.8 kB / 406.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3759, allocations: 122.1 kB / 406.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.376, allocations: 33.69 kB / 406.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.532e-05/0.376, allocations: 116 kB / 406.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.3761, allocations: 27.59 kB / 406.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.3761, allocations: 41.66 kB / 407 MB, free: 3.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3763, allocations: 318.8 kB / 407.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.3764, allocations: 39.97 kB / 407.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.3766, allocations: 123.6 kB / 407.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.3769, allocations: 180.7 kB / 407.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3769, allocations: 0 / 407.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003811/0.3773, allocations: 189.4 kB / 407.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3773, allocations: 8 kB / 407.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3773, allocations: 0 / 407.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.065e-05/0.3774, allocations: 12.31 kB / 407.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.3776, allocations: 48.33 kB / 407.9 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.3776, allocations: 11.94 kB / 407.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.3777, allocations: 19.84 kB / 407.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.3777, allocations: 11.94 kB / 407.9 MB, free: 1.957 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 0.0001048/0.3778, allocations: 130.4 kB / 408 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.378, allocations: 81.59 kB / 408.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.343e-05/0.378, allocations: 20.66 kB / 408.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3781, allocations: 4 kB / 408.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3781, allocations: 0 / 408.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3781, allocations: 4 kB / 408.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.3784, allocations: 209.4 kB / 408.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3784, allocations: 7.938 kB / 408.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.3785, allocations: 31.97 kB / 408.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3786, allocations: 4 kB / 408.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3786, allocations: 7.938 kB / 408.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3786, allocations: 3.984 kB / 408.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3786, allocations: 4 kB / 408.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.3791, allocations: 367.5 kB / 408.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.967e-05/0.3792, allocations: 92.97 kB / 408.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.3792, allocations: 11.94 kB / 408.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.3794, allocations: 4 kB / 408.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.3794, allocations: 3.984 kB / 408.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.3794, allocations: 12.06 kB / 408.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.559e-05/0.3795, allocations: 98.78 kB / 409 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3795, allocations: 4 kB / 409 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00032/0.3798, allocations: 31.84 kB / 409 MB, free: 0.7383 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.0001254/0.38, allocations: 103.2 kB / 409.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003297/0.3803, allocations: 123.4 kB / 409.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3803, allocations: 0 / 409.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.844e-05/0.3804, allocations: 27.92 kB / 409.3 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005474/0.381, allocations: 44.39 kB / 409.3 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008079/0.3818, allocations: 432.2 kB / 409.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.3821, allocations: 0.7122 MB / 410.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.3822, allocations: 15.44 kB / 410.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3822, allocations: 0 / 410.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of Templates: time 0.003679/0.3859, allocations: 1.494 MB / 412 MB, free: 13.73 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