Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 199.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 226.5 MB / 245.4 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.0007589/0.0007589, allocations: 105.4 kB / 297.4 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002347, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2202, allocations: 51.28 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09096/0.3112, allocations: 77.24 MB / 485.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.3115, allocations: 75.95 kB / 486 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002836/0.3143, allocations: 1.166 MB / 487.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3143, allocations: 0 / 487.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.3144, allocations: 0 / 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.0003411/0.3147, allocations: 354.9 kB / 487.5 MB, free: 12.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3148, allocations: 11.97 kB / 487.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.3148, allocations: 8.844 kB / 487.5 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.315, allocations: 196.1 kB / 487.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.315, allocations: 384 / 487.7 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.315, allocations: 4.375 kB / 487.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.3153, allocations: 125.4 kB / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.3153, allocations: 192 / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3153, allocations: 3.938 kB / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.3153, allocations: 0 / 487.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.751e-05/0.3154, allocations: 27.98 kB / 487.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003184/0.3158, allocations: 265.8 kB / 488.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.316, allocations: 142.2 kB / 488.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.593e-05/0.316, allocations: 33.75 kB / 488.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.3161, allocations: 4 kB / 488.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.3161, allocations: 34.5 kB / 488.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.3161, allocations: 0 / 488.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.000232/0.3163, allocations: 85.52 kB / 488.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.3164, allocations: 85.09 kB / 488.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.3165, allocations: 130.1 kB / 488.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3165, allocations: 25.7 kB / 488.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.332e-05/0.3166, allocations: 84.14 kB / 488.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.3166, allocations: 8.125 kB / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-06/0.3166, allocations: 4 kB / 488.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3167, allocations: 314.8 kB / 489 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.859e-05/0.3168, allocations: 11.94 kB / 489.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.264e-05/0.3168, allocations: 35.42 kB / 489.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.789e-05/0.3169, allocations: 51.36 kB / 489.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3169, allocations: 0 / 489.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001309/0.3171, allocations: 77.47 kB / 489.2 MB, free: 10.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3171, allocations: 7.984 kB / 489.2 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.3171, allocations: 0 / 489.2 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3171, allocations: 7.938 kB / 489.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.827e-05/0.3172, allocations: 8 kB / 489.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.3172, allocations: 4 kB / 489.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.591e-05/0.3173, allocations: 8 kB / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.3173, allocations: 0 / 489.3 MB, free: 10.74 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: 0 () * 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.473e-05/0.3174, allocations: 129.9 kB / 489.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.3175, allocations: 49.59 kB / 489.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.834e-05/0.3175, allocations: 8.188 kB / 489.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3175, allocations: 3.938 kB / 489.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3175, allocations: 4 kB / 489.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3175, allocations: 0 / 489.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.3177, allocations: 173.5 kB / 489.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3177, allocations: 0 / 489.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.707e-05/0.3178, allocations: 8 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.3178, allocations: 8 kB / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3178, allocations: 3.984 kB / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3178, allocations: 0 / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3178, allocations: 0 / 489.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.318, allocations: 176.2 kB / 489.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.318, allocations: 89.02 kB / 489.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.3181, allocations: 3.984 kB / 489.9 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.853e-05/0.3181, allocations: 11.94 kB / 489.9 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.3182, allocations: 0 / 489.9 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.3182, allocations: 384 / 489.9 MB, free: 9.977 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.295e-05/0.3182, allocations: 102.5 kB / 490 MB, free: 9.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3183, allocations: 0 / 490 MB, free: 9.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002086/0.3185, allocations: 11.98 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: 0 () * 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.0001127/0.3186, allocations: 99.25 kB / 490.1 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00013/0.3187, allocations: 31.92 kB / 490.1 MB, free: 9.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3187, allocations: 3.938 kB / 490.2 MB, free: 9.727 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.457e-05/0.3188, allocations: 11.98 kB / 490.2 MB, free: 9.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.3191, allocations: 26.34 kB / 490.2 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000332/0.3194, allocations: 203.3 kB / 490.4 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.3197, allocations: 0.6926 MB / 491.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.3197, allocations: 7.438 kB / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3197, allocations: 0 / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of Templates: time 0.001753/0.3215, allocations: 0.686 MB / 491.8 MB, free: 8.051 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches