Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 226.6 MB / 244.3 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.000862, allocations: 93.81 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002323/0.0002324, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2245, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.0009658/0.2256, allocations: 0.5345 MB / 408 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003247/0.2259, allocations: 127.7 kB / 408.2 MB, free: 27.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.316e-05/0.226, allocations: 7.938 kB / 408.2 MB, free: 27.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.388e-05/0.2261, allocations: 3.984 kB / 408.2 MB, free: 27.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.2262, allocations: 9.281 kB / 408.2 MB, free: 27.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.2265, allocations: 31.91 kB / 408.2 MB, free: 27.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.404e-05/0.2266, allocations: 35.91 kB / 408.2 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2267, allocations: 21.91 kB / 408.3 MB, free: 27.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.875e-05/0.2267, allocations: 11.94 kB / 408.3 MB, free: 27.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.072e-05/0.2268, allocations: 20.36 kB / 408.3 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.2268, allocations: 0 / 408.3 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.115e-05/0.2268, allocations: 4.75 kB / 408.3 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.236e-05/0.2269, allocations: 11.94 kB / 408.3 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.2269, allocations: 35.97 kB / 408.3 MB, free: 27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.913e-05/0.227, allocations: 39.92 kB / 408.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.227, allocations: 0 / 408.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.227, allocations: 3.938 kB / 408.4 MB, free: 26.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.227, allocations: 0 / 408.4 MB, free: 26.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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003482/0.2273, allocations: 372.8 kB / 408.8 MB, free: 26.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.2274, allocations: 12.03 kB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.2274, allocations: 12.84 kB / 408.8 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.2276, allocations: 190.9 kB / 409 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.2276, allocations: 3.156 kB / 409 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.2276, allocations: 7.953 kB / 409 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.2279, allocations: 144.2 kB / 409.1 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.2279, allocations: 0 / 409.1 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.2279, allocations: 2.219 kB / 409.1 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2279, allocations: 0 / 409.1 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.424e-05/0.228, allocations: 23.98 kB / 409.1 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001083/0.2281, allocations: 173.6 kB / 409.3 MB, free: 25.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.2282, allocations: 78.69 kB / 409.4 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.671e-05/0.2283, allocations: 52.78 kB / 409.4 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.2283, allocations: 0 / 409.4 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.2283, allocations: 30.56 kB / 409.5 MB, free: 25.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.2284, allocations: 0 / 409.5 MB, free: 25.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001728/0.2285, allocations: 97.58 kB / 409.6 MB, free: 25.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.2286, allocations: 63.34 kB / 409.6 MB, free: 25.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.2287, allocations: 152.3 kB / 409.8 MB, free: 25.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-06/0.2287, allocations: 25.7 kB / 409.8 MB, free: 25.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.437e-05/0.2287, allocations: 88.14 kB / 409.9 MB, free: 25.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.217e-05/0.2287, allocations: 4 kB / 409.9 MB, free: 25.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-06/0.2287, allocations: 0 / 409.9 MB, free: 25.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.2288, allocations: 322.8 kB / 410.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.576e-05/0.2288, allocations: 4 kB / 410.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.98e-05/0.2288, allocations: 58.86 kB / 410.3 MB, free: 24.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.119e-05/0.2289, allocations: 23.94 kB / 410.3 MB, free: 24.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2289, allocations: 4 kB / 410.3 MB, free: 24.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001041/0.229, allocations: 97.41 kB / 410.4 MB, free: 24.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.229, allocations: 4 kB / 410.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.229, allocations: 4 kB / 410.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.229, allocations: 3.938 kB / 410.4 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.264e-05/0.2291, allocations: 19.92 kB / 410.4 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.2291, allocations: 4.438 kB / 410.4 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.36e-05/0.2292, allocations: 8 kB / 410.4 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.2292, allocations: 7.938 kB / 410.4 MB, free: 24.67 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.94e-05/0.2293, allocations: 129.8 kB / 410.6 MB, free: 24.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.611e-05/0.2293, allocations: 81.69 kB / 410.6 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.2294, allocations: 12.72 kB / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2294, allocations: 0 / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2294, allocations: 0 / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2294, allocations: 4 kB / 410.7 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.499e-05/0.2295, allocations: 181.6 kB / 410.8 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2295, allocations: 0 / 410.8 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.467e-05/0.2295, allocations: 15.98 kB / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2296, allocations: 0 / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.2296, allocations: 3.953 kB / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.2296, allocations: 0 / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2296, allocations: 4 kB / 410.9 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.545e-05/0.2297, allocations: 109 kB / 411 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.851e-05/0.2297, allocations: 97 kB / 411.1 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.2297, allocations: 4 kB / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.491e-05/0.2298, allocations: 7.953 kB / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-06/0.2298, allocations: 0 / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.2298, allocations: 0 / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.479e-05/0.2298, allocations: 114 kB / 411.2 MB, free: 23.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2299, allocations: 0 / 411.2 MB, free: 23.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.2301, allocations: 12 kB / 411.2 MB, free: 23.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.57e-05/0.2302, allocations: 103.2 kB / 411.3 MB, free: 23.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.937e-05/0.2303, allocations: 51.86 kB / 411.4 MB, free: 23.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2303, allocations: 0 / 411.4 MB, free: 23.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.2303, allocations: 0 / 411.4 MB, free: 23.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.2306, allocations: 55.92 kB / 411.4 MB, free: 23.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002588/0.2308, allocations: 214.2 kB / 411.6 MB, free: 23.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.231, allocations: 0.6926 MB / 412.3 MB, free: 22.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.081e-05/0.231, allocations: 11.44 kB / 412.3 MB, free: 22.62 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.231, allocations: 0 / 412.3 MB, free: 22.62 MB / 298.7 MB Notification: Performance of Templates: time 0.001882/0.2329, allocations: 0.8783 MB / 413.2 MB, free: 21.74 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches