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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001317/0.001317, allocations: 175.3 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.336/1.336, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0008203/0.0008204, allocations: 94.3 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.06982/0.06982, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004096/0.0004096, allocations: 12 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07728/0.07771, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001825/0.07958, allocations: 1.672 MB / 444.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007529/0.08035, allocations: 0.5973 MB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.08047, allocations: 7.938 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.11e-05/0.08057, allocations: 7.922 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.08071, allocations: 27.78 kB / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.08096, allocations: 59.89 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.08108, allocations: 123.5 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.08122, allocations: 45.52 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.97e-05/0.08129, allocations: 39.8 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.031e-05/0.08135, allocations: 51.77 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.08138, allocations: 8 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.808e-05/0.0814, allocations: 4 kB / 445.7 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.617e-05/0.08144, allocations: 31.8 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.094e-05/0.08148, allocations: 45.64 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.498e-05/0.08158, allocations: 96.02 kB / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.08159, allocations: 0 / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.0816, allocations: 0 / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.08161, allocations: 0 / 445.8 MB, free: 12.96 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004716/0.08209, allocations: 438.7 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.08213, allocations: 8.031 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.08217, allocations: 23.72 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.08235, allocations: 218.7 kB / 446.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.08237, allocations: 8 kB / 446.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.08241, allocations: 12 kB / 446.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.08285, allocations: 263.8 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.08287, allocations: 0 / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.08289, allocations: 8 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.0829, allocations: 4 kB / 446.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.08314, allocations: 91.88 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.08362, allocations: 0.6037 MB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.08392, allocations: 155.7 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.08407, allocations: 74.64 kB / 447.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.0841, allocations: 8.125 kB / 447.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.08413, allocations: 50.55 kB / 447.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.08414, allocations: 0 / 447.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005046/0.08465, allocations: 193.5 kB / 448 MB, free: 10.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.0847, allocations: 110.8 kB / 448.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.251e-05/0.0848, allocations: 162.1 kB / 448.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.08482, allocations: 29.7 kB / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.08487, allocations: 108.5 kB / 448.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.08489, allocations: 28.02 kB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-06/0.08491, allocations: 12.03 kB / 448.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.786e-05/0.08496, allocations: 318.8 kB / 448.7 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.08507, allocations: 40.34 kB / 448.8 MB, free: 9.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.08521, allocations: 150.3 kB / 448.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.08534, allocations: 64.11 kB / 449 MB, free: 9.488 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.08535, allocations: 0 / 449 MB, free: 9.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003165/0.08567, allocations: 209.3 kB / 449.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.08569, allocations: 11.94 kB / 449.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.0857, allocations: 4 kB / 449.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.08572, allocations: 4 kB / 449.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.08587, allocations: 47.91 kB / 449.2 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.08589, allocations: 8 kB / 449.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.813e-05/0.08599, allocations: 24.19 kB / 449.3 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.08601, allocations: 12 kB / 449.3 MB, free: 9.168 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 8.325e-05/0.0861, allocations: 137.7 kB / 449.4 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.08622, allocations: 97.39 kB / 449.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.269e-05/0.08632, allocations: 20.7 kB / 449.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.08633, allocations: 0 / 449.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.08634, allocations: 4 kB / 449.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.08635, allocations: 0 / 449.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.08656, allocations: 209.6 kB / 449.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.08657, allocations: 0 / 449.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.08674, allocations: 43.91 kB / 449.8 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.08675, allocations: 3.953 kB / 449.8 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.08677, allocations: 8 kB / 449.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.08677, allocations: 0 / 449.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.08678, allocations: 0 / 449.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.08722, allocations: 407.2 kB / 450.2 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.08728, allocations: 104.9 kB / 450.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.08731, allocations: 11.94 kB / 450.3 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.08745, allocations: 12 kB / 450.3 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.08749, allocations: 3.984 kB / 450.3 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.0875, allocations: 4 kB / 450.3 MB, free: 8.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.517e-05/0.08756, allocations: 119.2 kB / 450.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08757, allocations: 0 / 450.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002722/0.08784, allocations: 24 kB / 450.5 MB, free: 7.879 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 8.17e-05/0.08793, allocations: 99.25 kB / 450.6 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003063/0.08825, allocations: 140.6 kB / 450.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.08826, allocations: 0 / 450.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.562e-05/0.08836, allocations: 31.92 kB / 450.7 MB, free: 7.602 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.0888, allocations: 59.86 kB / 450.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006086/0.08942, allocations: 0.5424 MB / 451.3 MB, free: 6.957 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.0896, allocations: 0.7167 MB / 452 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.08964, allocations: 11.44 kB / 452.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.08965, allocations: 4 kB / 452.1 MB, free: 6.199 MB / 298.7 MB Notification: Performance of Templates: time 0.0025/0.09216, allocations: 1.588 MB / 453.6 MB, free: 4.613 MB / 298.7 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/jenkins1/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