Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 105.3 kB / 16.03 MB, free: 6.324 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.001412/0.001412, allocations: 195.8 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.946/1.946, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08338/0.08338, allocations: 12.58 MB / 282.7 MB, free: 15.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 83.88 kB / 343 MB, free: 3.324 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3349, allocations: 49.38 MB / 392.3 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003611/0.3385, allocations: 2.066 MB / 394.4 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.3397, allocations: 0.5568 MB / 395 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.3399, allocations: 6.781 kB / 395 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.3401, allocations: 9 kB / 395 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.3403, allocations: 25.94 kB / 395 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.3406, allocations: 49.44 kB / 395.1 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.3408, allocations: 117.7 kB / 395.2 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.3411, allocations: 63.94 kB / 395.2 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.3412, allocations: 55.08 kB / 395.3 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.3413, allocations: 49.97 kB / 395.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.635e-05/0.3414, allocations: 9.906 kB / 395.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.46e-05/0.3414, allocations: 11.09 kB / 395.4 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.864e-05/0.3415, allocations: 32.2 kB / 395.4 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.794e-05/0.3416, allocations: 64.78 kB / 395.5 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002719/0.3418, allocations: 125 kB / 395.6 MB, free: 46.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3418, allocations: 0 / 395.6 MB, free: 46.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3419, allocations: 0.7031 kB / 395.6 MB, free: 46.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.3419, allocations: 0 / 395.6 MB, free: 46.99 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007288/0.3426, allocations: 426.9 kB / 396 MB, free: 46.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.3427, allocations: 10.28 kB / 396 MB, free: 46.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/0.3427, allocations: 19.22 kB / 396 MB, free: 46.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.343, allocations: 205.8 kB / 396.2 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/0.343, allocations: 11.02 kB / 396.2 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.343, allocations: 15.78 kB / 396.2 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.3436, allocations: 258.3 kB / 396.5 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.3437, allocations: 0 / 396.5 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.3437, allocations: 7.75 kB / 396.5 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3437, allocations: 2.5 kB / 396.5 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.344, allocations: 88.06 kB / 396.6 MB, free: 46.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006/0.3446, allocations: 0.5837 MB / 397.2 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.3449, allocations: 153.9 kB / 397.3 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.3451, allocations: 73.72 kB / 397.4 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.3451, allocations: 14.45 kB / 397.4 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.3451, allocations: 41.05 kB / 397.5 MB, free: 45.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.3452, allocations: 0 / 397.5 MB, free: 45.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004995/0.3457, allocations: 188.5 kB / 397.6 MB, free: 45.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.3457, allocations: 111 kB / 397.8 MB, free: 45.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.35e-05/0.3458, allocations: 129.9 kB / 397.9 MB, free: 45.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.3458, allocations: 26.7 kB / 397.9 MB, free: 45.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.581e-05/0.3459, allocations: 117.5 kB / 398 MB, free: 44.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.3459, allocations: 27.92 kB / 398 MB, free: 44.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.346, allocations: 36.92 kB / 398.1 MB, free: 44.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.346, allocations: 322.2 kB / 398.4 MB, free: 44.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.3461, allocations: 31.83 kB / 398.4 MB, free: 44.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.3463, allocations: 134.9 kB / 398.6 MB, free: 44.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/0.3466, allocations: 195.6 kB / 398.8 MB, free: 44.19 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3466, allocations: 1.062 kB / 398.8 MB, free: 44.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003401/0.3469, allocations: 204.5 kB / 399 MB, free: 44.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3469, allocations: 8.125 kB / 399 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.347, allocations: 4.188 kB / 399 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.347, allocations: 5 kB / 399 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.3472, allocations: 49.91 kB / 399 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.3472, allocations: 8.281 kB / 399 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3473, allocations: 21.56 kB / 399 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.3473, allocations: 7.5 kB / 399.1 MB, free: 44.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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 9.92e-05/0.3474, allocations: 139.6 kB / 399.2 MB, free: 43.9 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.3476, allocations: 82.06 kB / 399.3 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.3478, allocations: 16.03 kB / 399.3 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3478, allocations: 6.125 kB / 399.3 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3478, allocations: 1.031 kB / 399.3 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.3478, allocations: 5.141 kB / 399.3 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.348, allocations: 206.2 kB / 399.5 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3481, allocations: 1.25 kB / 399.5 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.3482, allocations: 35.11 kB / 399.5 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3483, allocations: 2.156 kB / 399.5 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3483, allocations: 1.156 kB / 399.5 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.3483, allocations: 1.406 kB / 399.5 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3483, allocations: 1 kB / 399.5 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005235/0.3488, allocations: 394.7 kB / 399.9 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.605e-05/0.3489, allocations: 85.55 kB / 400 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.3489, allocations: 5.219 kB / 400 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.349, allocations: 13.27 kB / 400 MB, free: 43.17 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.3491, allocations: 2.219 kB / 400 MB, free: 43.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.3491, allocations: 11.42 kB / 400 MB, free: 43.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.093e-05/0.3492, allocations: 97.66 kB / 400.1 MB, free: 43.08 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3492, allocations: 0 / 400.1 MB, free: 43.08 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.3495, allocations: 32.94 kB / 400.2 MB, free: 43.07 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 (15): * Single equations (assignments): 15 * 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.845e-05/0.3496, allocations: 99.69 kB / 400.3 MB, free: 42.97 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.3499, allocations: 127.2 kB / 400.4 MB, free: 42.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3499, allocations: 3.938 kB / 400.4 MB, free: 42.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.056e-05/0.35, allocations: 24.73 kB / 400.4 MB, free: 42.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.3505, allocations: 66.73 kB / 400.5 MB, free: 42.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007855/0.3513, allocations: 447.9 kB / 400.9 MB, free: 42.49 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.3515, allocations: 0.7121 MB / 401.6 MB, free: 41.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.897e-05/0.3516, allocations: 14.45 kB / 401.6 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.27e-05/0.3517, allocations: 14.06 kB / 401.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3517, allocations: 1.094 kB / 401.7 MB, free: 41.77 MB / 318.1 MB Notification: Performance of Templates: time 0.005014/0.3567, allocations: 1.148 MB / 402.8 MB, free: 41.21 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches