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.00147/0.00147, allocations: 200 kB / 18.06 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007429/0.000743, allocations: 94.41 kB / 297.4 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002385/0.0002386, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2252, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09043/0.3157, allocations: 77.26 MB / 485.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.3159, allocations: 76.8 kB / 486 MB, free: 14.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002734/0.3187, allocations: 1.154 MB / 487.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3187, allocations: 0 / 487.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3187, allocations: 3.984 kB / 487.1 MB, free: 13.15 MB / 362.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.000318/0.319, allocations: 369.5 kB / 487.5 MB, free: 12.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3191, allocations: 8.031 kB / 487.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.3191, allocations: 8.844 kB / 487.5 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.3193, allocations: 176.3 kB / 487.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.3193, allocations: 11.31 kB / 487.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.3193, allocations: 384 / 487.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.3196, allocations: 121.5 kB / 487.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3196, allocations: 4.125 kB / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.3196, allocations: 3.938 kB / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.3196, allocations: 0 / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.625e-05/0.3197, allocations: 23.98 kB / 487.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002988/0.32, allocations: 269.7 kB / 488.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.3202, allocations: 142.2 kB / 488.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.465e-05/0.3203, allocations: 33.7 kB / 488.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.3203, allocations: 4 kB / 488.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.3203, allocations: 34.56 kB / 488.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.3203, allocations: 0 / 488.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002252/0.3206, allocations: 81.52 kB / 488.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.3206, allocations: 89.17 kB / 488.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.801e-05/0.3207, allocations: 130.1 kB / 488.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.3208, allocations: 25.7 kB / 488.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.017e-05/0.3208, allocations: 92.12 kB / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-06/0.3208, allocations: 0 / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/0.3208, allocations: 0 / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.225e-05/0.3209, allocations: 314.8 kB / 489 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.321, allocations: 11.98 kB / 489.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.427e-05/0.321, allocations: 39.61 kB / 489.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.58e-05/0.3211, allocations: 47.38 kB / 489.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3211, allocations: 4 kB / 489.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001167/0.3212, allocations: 73.45 kB / 489.2 MB, free: 10.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.3213, allocations: 4 kB / 489.2 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3213, allocations: 4 kB / 489.2 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.3213, allocations: 224 / 489.2 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.135e-05/0.3213, allocations: 31.84 kB / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3214, allocations: 0 / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.33e-05/0.3214, allocations: 4 kB / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.3214, allocations: 11.92 kB / 489.3 MB, free: 10.73 MB / 362.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 (sample1.u,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 9.202e-05/0.3215, allocations: 118.8 kB / 489.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/0.3216, allocations: 49.59 kB / 489.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.241e-05/0.3216, allocations: 12.25 kB / 489.5 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3216, allocations: 4 kB / 489.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3217, allocations: 3.984 kB / 489.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3217, allocations: 0 / 489.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.3219, allocations: 173.6 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3219, allocations: 0 / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.143e-05/0.3219, allocations: 11.94 kB / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3219, allocations: 0 / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.3219, allocations: 0 / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3219, allocations: 0 / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.322, allocations: 4 kB / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.3221, allocations: 172.2 kB / 489.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-05/0.3222, allocations: 93 kB / 489.9 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.3222, allocations: 0 / 489.9 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.866e-05/0.3223, allocations: 4 kB / 489.9 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.881e-05/0.3223, allocations: 3.984 kB / 489.9 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.3224, allocations: 8 kB / 489.9 MB, free: 9.973 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.989e-05/0.3224, allocations: 102.4 kB / 490 MB, free: 9.875 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3224, allocations: 0 / 490 MB, free: 9.875 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002106/0.3227, allocations: 8 kB / 490 MB, free: 9.867 MB / 362.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 (sample1.u,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 0.0001246/0.3228, allocations: 99.19 kB / 490.1 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.3229, allocations: 40.16 kB / 490.2 MB, free: 9.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3229, allocations: 0 / 490.2 MB, free: 9.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.382e-05/0.323, allocations: 11.94 kB / 490.2 MB, free: 9.711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.3234, allocations: 38.38 kB / 490.2 MB, free: 9.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000379/0.3237, allocations: 187.1 kB / 490.4 MB, free: 9.457 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.3241, allocations: 0.6926 MB / 491.1 MB, free: 8.738 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.3241, allocations: 11.44 kB / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3241, allocations: 0 / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of Templates: time 0.002024/0.3261, allocations: 0.6849 MB / 491.8 MB, free: 8.047 MB / 362.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/jenkins1/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