Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 191.3 kB / 17.38 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008808/0.0008807, allocations: 98.7 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002448/0.0002448, allocations: 4 kB / 356.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2194, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00168/0.2212, allocations: 1.206 MB / 409.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003546/0.2215, allocations: 132.2 kB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.934e-05/0.2216, allocations: 6.156 kB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.444e-05/0.2217, allocations: 0 / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2218, allocations: 3.938 kB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.2221, allocations: 39.91 kB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.386e-05/0.2222, allocations: 23.92 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2223, allocations: 17.02 kB / 409.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.199e-05/0.2224, allocations: 11.92 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.521e-05/0.2224, allocations: 8.469 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.2225, allocations: 0 / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.2225, allocations: 2.344 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.824e-05/0.2225, allocations: 15.92 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.334e-05/0.2226, allocations: 45.52 kB / 409.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.954e-05/0.2227, allocations: 23.94 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2227, allocations: 0 / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.2227, allocations: 0 / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2227, allocations: 0.6562 kB / 409.6 MB, free: 26.18 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003851/0.2231, allocations: 354.1 kB / 409.9 MB, free: 25.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2231, allocations: 11.97 kB / 409.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.747e-05/0.2232, allocations: 8.844 kB / 409.9 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.2234, allocations: 186.1 kB / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.2234, allocations: 384 / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.2234, allocations: 8.359 kB / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002521/0.2237, allocations: 96.42 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2237, allocations: 192 / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.2237, allocations: 6.562 kB / 410.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.2237, allocations: 0 / 410.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.982e-05/0.2238, allocations: 19.92 kB / 410.2 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000268/0.2241, allocations: 260.4 kB / 410.5 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.801e-05/0.2242, allocations: 53.08 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.858e-05/0.2243, allocations: 21.78 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.2243, allocations: 3.984 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.2243, allocations: 30.56 kB / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.633e-06/0.2243, allocations: 0 / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002729/0.2246, allocations: 69.72 kB / 410.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.2247, allocations: 81.11 kB / 410.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.2248, allocations: 132.8 kB / 410.9 MB, free: 24.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.2248, allocations: 29.7 kB / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.2248, allocations: 92.05 kB / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.216e-06/0.2249, allocations: 0 / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.2249, allocations: 0 / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.609e-05/0.2249, allocations: 319 kB / 411.3 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.902e-05/0.225, allocations: 11.98 kB / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.309e-05/0.225, allocations: 21.66 kB / 411.3 MB, free: 24.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.092e-05/0.2251, allocations: 33.77 kB / 411.4 MB, free: 24.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.2252, allocations: 0 / 411.4 MB, free: 24.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001356/0.2253, allocations: 61.56 kB / 411.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2253, allocations: 7.984 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.2253, allocations: 3.938 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.2254, allocations: 4 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.106e-05/0.2254, allocations: 8.062 kB / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2255, allocations: 0 / 411.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.151e-05/0.2255, allocations: 4 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.2255, allocations: 7.922 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.578e-05/0.2256, allocations: 121.8 kB / 411.6 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.51e-05/0.2257, allocations: 41.55 kB / 411.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.2257, allocations: 11.88 kB / 411.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2257, allocations: 3.984 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2257, allocations: 4.031 kB / 411.7 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2258, allocations: 0 / 411.7 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.2259, allocations: 161.6 kB / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2259, allocations: 0 / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.089e-05/0.226, allocations: 11.98 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.226, allocations: 0 / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.2261, allocations: 0 / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2261, allocations: 0 / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2261, allocations: 4 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.2262, allocations: 172.2 kB / 412 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.2263, allocations: 89 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.2263, allocations: 4 kB / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.4e-05/0.2264, allocations: 7.984 kB / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.821e-05/0.2265, allocations: 0 / 412.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.2265, allocations: 4.031 kB / 412.1 MB, free: 23.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.857e-05/0.2266, allocations: 103.3 kB / 412.2 MB, free: 23.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2266, allocations: 0 / 412.2 MB, free: 23.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003424/0.2269, allocations: 4 kB / 412.2 MB, free: 23.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.32e-05/0.227, allocations: 99.23 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001496/0.2272, allocations: 24.05 kB / 412.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2272, allocations: 0 / 412.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.192e-05/0.2272, allocations: 19.92 kB / 412.3 MB, free: 23.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.2277, allocations: 18.25 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003327/0.228, allocations: 183.4 kB / 412.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2282, allocations: 0.6887 MB / 413.2 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.533e-05/0.2282, allocations: 7.438 kB / 413.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2282, allocations: 0 / 413.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of Templates: time 0.001977/0.2302, allocations: 0.6197 MB / 413.9 MB, free: 21.46 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches