Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 196.6 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.6 MB / 244.3 MB, free: 6.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008974/0.0008976, allocations: 97.27 kB / 296.4 MB, free: 6.801 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002176, allocations: 8 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2131, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.001314/0.2144, allocations: 1.214 MB / 408.7 MB, free: 26.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002881/0.2147, allocations: 147.6 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.385e-05/0.2148, allocations: 4.562 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.846e-05/0.2149, allocations: 0.75 kB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.215, allocations: 7.938 kB / 408.9 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.2152, allocations: 34.05 kB / 408.9 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.106e-05/0.2153, allocations: 27.88 kB / 408.9 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.089e-05/0.2154, allocations: 11.98 kB / 408.9 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.949e-05/0.2154, allocations: 7.938 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.953e-05/0.2155, allocations: 12.83 kB / 409 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.2155, allocations: 0 / 409 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.128e-05/0.2155, allocations: 4 kB / 409 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.351e-05/0.2155, allocations: 17.23 kB / 409 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.5e-05/0.2156, allocations: 29.7 kB / 409 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.723e-05/0.2157, allocations: 27.94 kB / 409 MB, free: 26.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2157, allocations: 8.562 kB / 409.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2157, allocations: 0 / 409.1 MB, free: 26.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.2157, allocations: 3.312 kB / 409.1 MB, free: 26.24 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003442/0.2161, allocations: 364 kB / 409.4 MB, free: 25.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2161, allocations: 8.031 kB / 409.4 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.2161, allocations: 7.906 kB / 409.4 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.2163, allocations: 186.9 kB / 409.6 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-06/0.2163, allocations: 4 kB / 409.6 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.2163, allocations: 4.875 kB / 409.6 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.2166, allocations: 115.1 kB / 409.7 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.2166, allocations: 2.812 kB / 409.7 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.2166, allocations: 0 / 409.7 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2166, allocations: 7.938 kB / 409.7 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.08e-05/0.2167, allocations: 19.98 kB / 409.8 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002314/0.2169, allocations: 260.3 kB / 410 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.2171, allocations: 146.2 kB / 410.2 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.65e-05/0.2172, allocations: 29.77 kB / 410.2 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.2172, allocations: 0 / 410.2 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.355e-05/0.2172, allocations: 34.56 kB / 410.2 MB, free: 24.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.2172, allocations: 0 / 410.2 MB, free: 24.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002158/0.2174, allocations: 89.52 kB / 410.3 MB, free: 24.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.2175, allocations: 81.05 kB / 410.4 MB, free: 24.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.281e-05/0.2176, allocations: 131.8 kB / 410.5 MB, free: 24.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.2176, allocations: 25.7 kB / 410.5 MB, free: 24.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.351e-05/0.2176, allocations: 100 kB / 410.6 MB, free: 24.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.063e-06/0.2176, allocations: 128 / 410.6 MB, free: 24.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.2176, allocations: 4 kB / 410.6 MB, free: 24.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.354e-05/0.2177, allocations: 318.8 kB / 411 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.674e-05/0.2177, allocations: 7.984 kB / 411 MB, free: 24.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.712e-05/0.2178, allocations: 31.44 kB / 411 MB, free: 24.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.98e-05/0.2178, allocations: 23.92 kB / 411 MB, free: 24.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2178, allocations: 3.953 kB / 411 MB, free: 24.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001034/0.2179, allocations: 69.56 kB / 411.1 MB, free: 23.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.218, allocations: 11.98 kB / 411.1 MB, free: 23.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.218, allocations: 4.125 kB / 411.1 MB, free: 23.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.218, allocations: 0 / 411.1 MB, free: 23.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.267e-05/0.218, allocations: 11.94 kB / 411.1 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.2181, allocations: 4 kB / 411.1 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.048e-05/0.2181, allocations: 288 / 411.1 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.2181, allocations: 4 kB / 411.1 MB, free: 23.9 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.793e-05/0.2182, allocations: 121.8 kB / 411.2 MB, free: 23.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.649e-05/0.2182, allocations: 61.47 kB / 411.3 MB, free: 23.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.2183, allocations: 16.25 kB / 411.3 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2183, allocations: 0 / 411.3 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2183, allocations: 0 / 411.3 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2183, allocations: 4 kB / 411.3 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.2184, allocations: 161.7 kB / 411.5 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2184, allocations: 0 / 411.5 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.657e-05/0.2185, allocations: 15.94 kB / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2185, allocations: 0 / 411.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2185, allocations: 8 kB / 411.5 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2185, allocations: 0 / 411.5 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2185, allocations: 0 / 411.5 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.2186, allocations: 172.2 kB / 411.7 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.231e-05/0.2187, allocations: 92.94 kB / 411.8 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.2187, allocations: 11.95 kB / 411.8 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.637e-05/0.2187, allocations: 4 kB / 411.8 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-05/0.2188, allocations: 4 kB / 411.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.2188, allocations: 0 / 411.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.25e-05/0.2188, allocations: 108.1 kB / 411.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2188, allocations: 0 / 411.9 MB, free: 23.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.219, allocations: 4 kB / 411.9 MB, free: 23.02 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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.733e-05/0.2191, allocations: 95.25 kB / 412 MB, free: 22.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.2193, allocations: 35.92 kB / 412 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2193, allocations: 0 / 412 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.259e-05/0.2193, allocations: 11.98 kB / 412 MB, free: 22.87 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.2196, allocations: 33.05 kB / 412.1 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000257/0.2199, allocations: 195.4 kB / 412.3 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.22, allocations: 0.6887 MB / 412.9 MB, free: 21.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.929e-05/0.2201, allocations: 7.438 kB / 412.9 MB, free: 21.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2201, allocations: 0 / 412.9 MB, free: 21.89 MB / 298.7 MB Notification: Performance of Templates: time 0.001586/0.2217, allocations: 0.6858 MB / 413.6 MB, free: 21.21 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches