Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008479/0.0008479, allocations: 179.9 kB / 16.45 MB, free: 5.68 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.437/1.437, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.0008201/0.0008199, allocations: 84.86 kB / 270.9 MB, free: 8.367 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.07102/0.07102, allocations: 12.57 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 19.98 kB / 392.7 MB, free: 66.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07926/0.07966, allocations: 50.37 MB / 443 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001979/0.08168, allocations: 1.711 MB / 444.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007832/0.0825, allocations: 0.5194 MB / 445.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.08266, allocations: 4 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.08277, allocations: 7.922 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.333e-05/0.08285, allocations: 23.78 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.08314, allocations: 47.89 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.0833, allocations: 127.5 kB / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.08344, allocations: 41.45 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.343e-05/0.08352, allocations: 39.86 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.567e-05/0.08359, allocations: 47.7 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.08362, allocations: 4 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.795e-05/0.08365, allocations: 4 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.08367, allocations: 19.92 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.08371, allocations: 45.64 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.08382, allocations: 88.05 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.08383, allocations: 0 / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.08384, allocations: 0 / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.08385, allocations: 3.938 kB / 445.7 MB, free: 13.05 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005075/0.08436, allocations: 414.9 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.0844, allocations: 8.031 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.08446, allocations: 15.81 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.08465, allocations: 214.8 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.08467, allocations: 11.94 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.161e-05/0.08471, allocations: 12 kB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.08514, allocations: 238.6 kB / 446.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.08516, allocations: 3.906 kB / 446.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.08518, allocations: 4 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.08519, allocations: 4 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.08544, allocations: 95.81 kB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005746/0.08602, allocations: 0.5998 MB / 447.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.08633, allocations: 151.9 kB / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.08648, allocations: 82.62 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.08652, allocations: 3.938 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.08654, allocations: 34.56 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.08655, allocations: 4 kB / 447.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004808/0.08704, allocations: 189.4 kB / 447.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.0871, allocations: 114.9 kB / 447.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.583e-05/0.08719, allocations: 142 kB / 448.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.08721, allocations: 29.7 kB / 448.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.08727, allocations: 112 kB / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.0873, allocations: 31.64 kB / 448.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.08731, allocations: 0 / 448.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.524e-05/0.08738, allocations: 334.8 kB / 448.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.0875, allocations: 44.72 kB / 448.6 MB, free: 9.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.08765, allocations: 150.3 kB / 448.7 MB, free: 9.715 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.08794, allocations: 149.1 kB / 448.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.08796, allocations: 0 / 448.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003407/0.0883, allocations: 213.5 kB / 449.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.08833, allocations: 11.94 kB / 449.1 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.08834, allocations: 4 kB / 449.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.08836, allocations: 4 kB / 449.1 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.08851, allocations: 48.14 kB / 449.2 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.08853, allocations: 8 kB / 449.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.08864, allocations: 23.83 kB / 449.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.08866, allocations: 12.16 kB / 449.2 MB, free: 9.227 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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.833e-05/0.08876, allocations: 138.6 kB / 449.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.0889, allocations: 93.42 kB / 449.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.08894, allocations: 16.72 kB / 449.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.08895, allocations: 3.984 kB / 449.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.08896, allocations: 4 kB / 449.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.08897, allocations: 0 / 449.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.08917, allocations: 209.5 kB / 449.7 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.08918, allocations: 4 kB / 449.7 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.08939, allocations: 47.91 kB / 449.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.0894, allocations: 4 kB / 449.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.08942, allocations: 4 kB / 449.7 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.08943, allocations: 3.984 kB / 449.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.08943, allocations: 4 kB / 449.7 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004794/0.08992, allocations: 391.4 kB / 450.1 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.02e-05/0.08996, allocations: 96.92 kB / 450.2 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.08999, allocations: 8.062 kB / 450.2 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.09013, allocations: 8 kB / 450.2 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.09017, allocations: 7.984 kB / 450.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.09019, allocations: 4 kB / 450.2 MB, free: 8.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.116e-05/0.09023, allocations: 99.27 kB / 450.3 MB, free: 8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09024, allocations: 0 / 450.3 MB, free: 8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002796/0.09052, allocations: 31.91 kB / 450.4 MB, free: 7.969 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 7.976e-05/0.09061, allocations: 103.2 kB / 450.5 MB, free: 7.855 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.09091, allocations: 132.6 kB / 450.6 MB, free: 7.727 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.09092, allocations: 4.062 kB / 450.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.339e-05/0.09102, allocations: 36 kB / 450.6 MB, free: 7.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.09149, allocations: 63.91 kB / 450.7 MB, free: 7.625 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007758/0.09228, allocations: 0.5326 MB / 451.2 MB, free: 7.051 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001418/0.09243, allocations: 0.7128 MB / 451.9 MB, free: 6.312 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.124e-05/0.09248, allocations: 15.44 kB / 452 MB, free: 6.297 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.09249, allocations: 0 / 452 MB, free: 6.297 MB / 298.7 MB Notification: Performance of Templates: time 0.002764/0.09526, allocations: 1.594 MB / 453.5 MB, free: 4.707 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches