Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|superSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002737/0.002743, allocations: 188.1 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.234/4.234, allocations: 205.4 MB / 222.6 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00189/0.00189, allocations: 90.88 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2247/0.2247, allocations: 12.6 MB / 331.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009234/0.000924, allocations: 12.84 kB / 392 MB, free: 54.99 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1772, allocations: 50.38 MB / 442.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample): time 0.004282/0.1816, allocations: 1.543 MB / 443.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003462/0.1851, allocations: 0.9057 MB / 444.8 MB, free: 9.117 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003269/0.1856, allocations: 3.938 kB / 444.8 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.1867, allocations: 133.4 kB / 444.9 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006252/0.1873, allocations: 91.73 kB / 445 MB, free: 8.895 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001361/0.1887, allocations: 158.4 kB / 445.2 MB, free: 8.742 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004789/0.1892, allocations: 115.7 kB / 445.3 MB, free: 8.629 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.1895, allocations: 29.52 kB / 445.3 MB, free: 8.598 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.1897, allocations: 55.77 kB / 445.4 MB, free: 8.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1899, allocations: 59.7 kB / 445.4 MB, free: 8.484 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.255e-05/0.19, allocations: 4 kB / 445.4 MB, free: 8.48 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.1903, allocations: 31.97 kB / 445.5 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.1904, allocations: 35.84 kB / 445.5 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.1906, allocations: 49.64 kB / 445.5 MB, free: 8.359 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004458/0.1911, allocations: 156.5 kB / 445.7 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1911, allocations: 0 / 445.7 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1911, allocations: 0 / 445.7 MB, free: 8.207 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1911, allocations: 0 / 445.7 MB, free: 8.207 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.00118/0.1923, allocations: 496.1 kB / 446.2 MB, free: 7.668 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.1924, allocations: 8.031 kB / 446.2 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.1925, allocations: 23.75 kB / 446.2 MB, free: 7.637 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000643/0.1932, allocations: 257.6 kB / 446.5 MB, free: 7.348 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.333e-05/0.1933, allocations: 4 kB / 446.5 MB, free: 7.344 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.156e-05/0.1934, allocations: 8 kB / 446.5 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000623/0.194, allocations: 142.7 kB / 446.6 MB, free: 7.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.1941, allocations: 7.938 kB / 446.6 MB, free: 7.164 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.1941, allocations: 0 / 446.6 MB, free: 7.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.1942, allocations: 4 kB / 446.6 MB, free: 7.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.1944, allocations: 27.98 kB / 446.7 MB, free: 7.133 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009294/0.1954, allocations: 358.3 kB / 447 MB, free: 6.727 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004698/0.1959, allocations: 111.9 kB / 447.1 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.196, allocations: 7.984 kB / 447.1 MB, free: 6.582 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.1963, allocations: 83.45 kB / 447.2 MB, free: 6.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 4.448e-06/0.1963, allocations: 0 / 447.2 MB, free: 6.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007458/0.1971, allocations: 133.4 kB / 447.3 MB, free: 6.352 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.551e-05/0.1972, allocations: 132.5 kB / 447.5 MB, free: 6.191 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006398/0.1979, allocations: 268.9 kB / 447.7 MB, free: 5.918 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.198, allocations: 25.7 kB / 447.8 MB, free: 5.887 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.1981, allocations: 186.9 kB / 447.9 MB, free: 5.703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.885e-05/0.1982, allocations: 19.73 kB / 448 MB, free: 5.684 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.325e-05/0.1982, allocations: 4 kB / 448 MB, free: 5.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.1984, allocations: 314.8 kB / 448.3 MB, free: 5.363 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.1986, allocations: 23.98 kB / 448.3 MB, free: 5.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.1988, allocations: 69.88 kB / 448.4 MB, free: 5.25 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.199, allocations: 28.03 kB / 448.4 MB, free: 5.223 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.199, allocations: 0 / 448.4 MB, free: 5.223 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004968/0.1995, allocations: 101.5 kB / 448.5 MB, free: 5.117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.1996, allocations: 8 kB / 448.5 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1996, allocations: 0 / 448.5 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.937e-05/0.1997, allocations: 8.125 kB / 448.5 MB, free: 5.102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.1999, allocations: 15.97 kB / 448.5 MB, free: 5.086 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.2, allocations: 4 kB / 448.5 MB, free: 5.082 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.2002, allocations: 11.86 kB / 448.5 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.2003, allocations: 4 kB / 448.5 MB, free: 5.066 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample.y,superSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.000264/0.2005, allocations: 146.7 kB / 448.7 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.2008, allocations: 61.44 kB / 448.7 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2009, allocations: 29.77 kB / 448.8 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.2009, allocations: 4 kB / 448.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.201, allocations: 0 / 448.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.201, allocations: 0 / 448.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004221/0.2014, allocations: 229.5 kB / 449 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.2015, allocations: 0 / 449 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.548e-05/0.2016, allocations: 11.92 kB / 449 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.2016, allocations: 0 / 449 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.2017, allocations: 8.312 kB / 449 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.393e-06/0.2017, allocations: 0 / 449 MB, free: 4.523 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.617e-06/0.2017, allocations: 7.984 kB / 449 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000602/0.2023, allocations: 178 kB / 449.2 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.2026, allocations: 108.8 kB / 449.3 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.2026, allocations: 8 kB / 449.3 MB, free: 4.172 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.2029, allocations: 11.98 kB / 449.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.203, allocations: 3.953 kB / 449.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.203, allocations: 8 kB / 449.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004321/0.2035, allocations: 192.5 kB / 449.5 MB, free: 3.957 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.302e-06/0.2035, allocations: 4 kB / 449.5 MB, free: 3.953 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006405/0.2042, allocations: 24 kB / 449.5 MB, free: 3.93 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample.y,sample.y,superSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002012/0.2062, allocations: 427.2 kB / 450 MB, free: 3.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005544/0.2068, allocations: 71.91 kB / 450 MB, free: 3.438 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.2069, allocations: 0 / 450 MB, free: 3.438 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.2071, allocations: 20 kB / 450.1 MB, free: 3.418 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.2079, allocations: 60.11 kB / 450.1 MB, free: 3.363 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.2092, allocations: 362.1 kB / 450.5 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.2097, allocations: 0.736 MB / 451.2 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.2098, allocations: 23.42 kB / 451.2 MB, free: 2.188 MB / 282.7 MB Notification: Performance of SimCode: time 3.376e-06/0.2098, allocations: 0 / 451.2 MB, free: 2.188 MB / 282.7 MB Notification: Performance of Templates: time 0.01115/0.221, allocations: 2.57 MB / 453.8 MB, free: 15.61 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches