Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 103 kB / 16.03 MB, free: 6.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.001311/0.001311, allocations: 186.1 kB / 16.95 MB, free: 6.176 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.821/1.821, allocations: 205.1 MB / 222.8 MB, free: 12.43 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.08231/0.08231, 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.002078/0.002078, allocations: 75.89 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3365, allocations: 49.39 MB / 392.4 MB, free: 49.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003637/0.3402, allocations: 2.084 MB / 394.4 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3414, allocations: 0.595 MB / 395 MB, free: 47.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.3415, allocations: 11.12 kB / 395 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.3417, allocations: 9.969 kB / 395.1 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.3419, allocations: 24.11 kB / 395.1 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.3422, allocations: 64.81 kB / 395.1 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.3424, allocations: 126.2 kB / 395.3 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/0.3427, allocations: 56.41 kB / 395.3 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.683e-05/0.3428, allocations: 57.45 kB / 395.4 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.3429, allocations: 57.97 kB / 395.4 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.3429, allocations: 12.88 kB / 395.4 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.343e-05/0.3429, allocations: 10.62 kB / 395.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.429e-05/0.343, allocations: 33.5 kB / 395.5 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.959e-05/0.3431, allocations: 66.03 kB / 395.6 MB, free: 47.03 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.3433, allocations: 137.5 kB / 395.7 MB, free: 46.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3434, allocations: 4 kB / 395.7 MB, free: 46.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3434, allocations: 1.031 kB / 395.7 MB, free: 46.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.3434, allocations: 0 / 395.7 MB, free: 46.96 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006868/0.3441, allocations: 459.9 kB / 396.1 MB, free: 46.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.3441, allocations: 9.219 kB / 396.2 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.213e-05/0.3442, allocations: 17.75 kB / 396.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.3444, allocations: 214.4 kB / 396.4 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3445, allocations: 9.969 kB / 396.4 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.3445, allocations: 17.66 kB / 396.4 MB, free: 46.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000541/0.3451, allocations: 266.6 kB / 396.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.3451, allocations: 2.109 kB / 396.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.3451, allocations: 9.453 kB / 396.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3451, allocations: 3.594 kB / 396.7 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.3454, allocations: 86.73 kB / 396.8 MB, free: 46.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006221/0.346, allocations: 0.5951 MB / 397.4 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.3464, allocations: 151.1 kB / 397.5 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3465, allocations: 76.7 kB / 397.6 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.3465, allocations: 1.781 kB / 397.6 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.3466, allocations: 36.28 kB / 397.6 MB, free: 45.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.193e-06/0.3466, allocations: 1.812 kB / 397.6 MB, free: 45.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005051/0.3471, allocations: 193.9 kB / 397.8 MB, free: 45.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.3472, allocations: 111.2 kB / 397.9 MB, free: 45.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.3473, allocations: 157.6 kB / 398.1 MB, free: 44.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.3473, allocations: 30.92 kB / 398.1 MB, free: 44.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.785e-05/0.3474, allocations: 113.1 kB / 398.2 MB, free: 44.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.456e-05/0.3474, allocations: 32.3 kB / 398.2 MB, free: 44.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.3474, allocations: 42.11 kB / 398.3 MB, free: 44.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.3475, allocations: 325.4 kB / 398.6 MB, free: 44.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.3476, allocations: 37.22 kB / 398.6 MB, free: 44.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.3478, allocations: 133.4 kB / 398.8 MB, free: 44.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.348, allocations: 184.2 kB / 398.9 MB, free: 44.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.348, allocations: 1.062 kB / 399 MB, free: 44.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003566/0.3484, allocations: 201.2 kB / 399.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3484, allocations: 6.75 kB / 399.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3484, allocations: 4.031 kB / 399.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3485, allocations: 4.781 kB / 399.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.3486, allocations: 55.06 kB / 399.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3486, allocations: 8.5 kB / 399.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.906e-05/0.3487, allocations: 24.95 kB / 399.2 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3488, allocations: 8.312 kB / 399.3 MB, free: 43.92 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.144e-05/0.3489, allocations: 131.9 kB / 399.4 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.349, allocations: 96.03 kB / 399.5 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001462/0.3492, allocations: 26.08 kB / 399.5 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3492, allocations: 2.547 kB / 399.5 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3492, allocations: 1.062 kB / 399.5 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3492, allocations: 9.047 kB / 399.5 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.3494, allocations: 221.7 kB / 399.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3494, allocations: 1.125 kB / 399.7 MB, free: 43.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.3496, allocations: 31.33 kB / 399.8 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.3496, allocations: 0.9688 kB / 399.8 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3496, allocations: 1.438 kB / 399.8 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3497, allocations: 2.406 kB / 399.8 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3497, allocations: 3.938 kB / 399.8 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004641/0.3501, allocations: 383.9 kB / 400.1 MB, free: 43.15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.513e-05/0.3502, allocations: 105.3 kB / 400.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.3502, allocations: 5.219 kB / 400.3 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.3504, allocations: 4.688 kB / 400.3 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.3504, allocations: 10.45 kB / 400.3 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.3504, allocations: 7.875 kB / 400.3 MB, free: 43.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.519e-05/0.3505, allocations: 118.6 kB / 400.4 MB, free: 42.93 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3505, allocations: 3.938 kB / 400.4 MB, free: 42.92 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.3508, allocations: 29.81 kB / 400.4 MB, free: 42.91 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 0.0001053/0.351, allocations: 96 kB / 400.5 MB, free: 42.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003721/0.3513, allocations: 134.8 kB / 400.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3514, allocations: 0 / 400.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3515, allocations: 28.45 kB / 400.7 MB, free: 42.75 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.352, allocations: 76.42 kB / 400.8 MB, free: 42.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009042/0.3529, allocations: 481.6 kB / 401.2 MB, free: 42.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3532, allocations: 0.724 MB / 402 MB, free: 41.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.994e-05/0.3533, allocations: 18.41 kB / 402 MB, free: 41.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.951e-05/0.3533, allocations: 19.94 kB / 402 MB, free: 41.57 MB / 318.1 MB Notification: Performance of SimCode: time 1.011e-06/0.3533, allocations: 0 / 402 MB, free: 41.57 MB / 318.1 MB Notification: Performance of Templates: time 0.004403/0.3577, allocations: 1.276 MB / 403.3 MB, free: 40.96 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches