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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 181.1 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.4 MB / 222.6 MB, free: 9.094 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007509/0.000751, allocations: 99.02 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07789/0.07789, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004165/0.0004167, allocations: 20 kB / 392.6 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.08995, allocations: 50.37 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00181/0.09182, allocations: 1.649 MB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006891/0.09253, allocations: 0.5545 MB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.822e-05/0.09263, allocations: 4 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.42e-05/0.09272, allocations: 11.86 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.09284, allocations: 19.84 kB / 445.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002003/0.09305, allocations: 67.81 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.09316, allocations: 115.6 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.09328, allocations: 45.03 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.787e-05/0.09335, allocations: 39.84 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.084e-05/0.09342, allocations: 39.78 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.09344, allocations: 12 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.631e-05/0.09346, allocations: 4 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.812e-05/0.09349, allocations: 15.92 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.09352, allocations: 45.64 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.298e-05/0.09361, allocations: 80.05 kB / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.09362, allocations: 0 / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.09363, allocations: 0 / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.09364, allocations: 3.938 kB / 445.7 MB, free: 13.08 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004473/0.09409, allocations: 418.9 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.09413, allocations: 8.031 kB / 446.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.09417, allocations: 19.81 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.09433, allocations: 210.7 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.09435, allocations: 12 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.539e-05/0.09438, allocations: 12 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.09483, allocations: 250.5 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.09485, allocations: 4 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.09487, allocations: 8 kB / 446.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.09488, allocations: 4 kB / 446.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.09512, allocations: 95.88 kB / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.09559, allocations: 0.5881 MB / 447.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.09591, allocations: 159.7 kB / 447.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.09606, allocations: 82.77 kB / 447.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.09609, allocations: 7.984 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.505e-05/0.09611, allocations: 38.55 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.09612, allocations: 0 / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004621/0.09659, allocations: 197.7 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.09664, allocations: 110.8 kB / 447.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.521e-05/0.09671, allocations: 135.6 kB / 448 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.09673, allocations: 25.7 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.735e-05/0.09677, allocations: 107.9 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.0968, allocations: 27.7 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-06/0.09681, allocations: 4 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.09686, allocations: 326.9 kB / 448.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.09697, allocations: 36.34 kB / 448.6 MB, free: 9.945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.09711, allocations: 150.3 kB / 448.7 MB, free: 9.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.09724, allocations: 63.89 kB / 448.8 MB, free: 9.688 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.09725, allocations: 7.953 kB / 448.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003134/0.09757, allocations: 205.3 kB / 449 MB, free: 9.473 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.09759, allocations: 8 kB / 449 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.0976, allocations: 4.375 kB / 449 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.09762, allocations: 4 kB / 449 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.09776, allocations: 47.91 kB / 449 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.09778, allocations: 8 kB / 449 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.803e-05/0.09789, allocations: 35.98 kB / 449.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.09791, allocations: 12 kB / 449.1 MB, free: 9.355 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/0.09798, allocations: 125.6 kB / 449.2 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.0981, allocations: 93.48 kB / 449.3 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.233e-05/0.09819, allocations: 20.7 kB / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.0982, allocations: 0 / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.09821, allocations: 3.938 kB / 449.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.09822, allocations: 4 kB / 449.3 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.09841, allocations: 201.6 kB / 449.5 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.09842, allocations: 4 kB / 449.5 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.0986, allocations: 43.86 kB / 449.6 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.09862, allocations: 4 kB / 449.6 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.09863, allocations: 0 / 449.6 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.09864, allocations: 4 kB / 449.6 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.09864, allocations: 0 / 449.6 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.09907, allocations: 399.8 kB / 450 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.445e-05/0.0991, allocations: 93.03 kB / 450.1 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.09913, allocations: 15.95 kB / 450.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.09927, allocations: 8 kB / 450.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.121e-05/0.0993, allocations: 7.984 kB / 450.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.09932, allocations: 8 kB / 450.1 MB, free: 8.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.337e-05/0.09936, allocations: 95.27 kB / 450.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09936, allocations: 0 / 450.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.09964, allocations: 27.91 kB / 450.2 MB, free: 8.117 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 (15): * Single equations (assignments): 15 * 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 6.706e-05/0.09971, allocations: 99.25 kB / 450.3 MB, free: 8.008 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002772/0.09999, allocations: 132.6 kB / 450.5 MB, free: 7.879 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1, allocations: 4.062 kB / 450.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.109e-05/0.1001, allocations: 31.92 kB / 450.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.1005, allocations: 52.31 kB / 450.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005564/0.1011, allocations: 0.4994 MB / 451 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.1012, allocations: 0.7167 MB / 451.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.498e-05/0.1013, allocations: 15.38 kB / 451.8 MB, free: 6.496 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1013, allocations: 4 kB / 451.8 MB, free: 6.492 MB / 298.7 MB Notification: Performance of Templates: time 0.002368/0.1036, allocations: 1.501 MB / 453.3 MB, free: 4.992 MB / 298.7 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/jenkins1/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