Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009028/0.0009029, allocations: 177.7 kB / 16.77 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008141/0.0008143, allocations: 95.84 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06526/0.06526, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003994/0.0003994, allocations: 16 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09211, allocations: 50.37 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001396/0.09356, allocations: 1.192 MB / 444.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002985/0.09388, allocations: 135.6 kB / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.689e-05/0.09398, allocations: 0 / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.291e-05/0.09402, allocations: 0 / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.09414, allocations: 7.875 kB / 444.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.09437, allocations: 31.91 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.837e-05/0.09444, allocations: 27.92 kB / 444.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.034e-05/0.09454, allocations: 12 kB / 444.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.632e-05/0.09457, allocations: 11.92 kB / 444.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.926e-05/0.09461, allocations: 11.94 kB / 444.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.09463, allocations: 0 / 444.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.417e-06/0.09464, allocations: 0 / 444.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.151e-05/0.09468, allocations: 7.984 kB / 444.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.711e-05/0.09471, allocations: 41.58 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.799e-05/0.09477, allocations: 23.95 kB / 444.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.09478, allocations: 0 / 444.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09479, allocations: 0 / 444.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.0948, allocations: 4 kB / 444.5 MB, free: 14.61 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.0003176/0.09512, allocations: 351.6 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.09516, allocations: 8.031 kB / 444.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.0952, allocations: 8.844 kB / 444.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.09534, allocations: 188.1 kB / 445 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.09537, allocations: 4.375 kB / 445 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.09538, allocations: 4.375 kB / 445 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.09557, allocations: 89.61 kB / 445.1 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.09559, allocations: 192 / 445.1 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.09561, allocations: 3.938 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.09562, allocations: 0 / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.286e-05/0.09567, allocations: 23.97 kB / 445.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000236/0.09592, allocations: 261.8 kB / 445.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.618e-05/0.09598, allocations: 45.14 kB / 445.4 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.046e-05/0.09602, allocations: 17.78 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.09605, allocations: 0 / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.09607, allocations: 42.5 kB / 445.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.09607, allocations: 0 / 445.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001913/0.09627, allocations: 57.62 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.09632, allocations: 81.09 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.894e-05/0.09642, allocations: 137.9 kB / 445.8 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.104e-06/0.09644, allocations: 29.7 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.893e-05/0.09647, allocations: 84.14 kB / 445.9 MB, free: 12.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.224e-06/0.09649, allocations: 3.984 kB / 445.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-06/0.0965, allocations: 0 / 445.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.31e-05/0.09654, allocations: 314.8 kB / 446.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.724e-05/0.09658, allocations: 7.984 kB / 446.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.32e-05/0.09661, allocations: 21.72 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.508e-05/0.09666, allocations: 25.66 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.09667, allocations: 3.938 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.569e-05/0.09675, allocations: 49.62 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.09677, allocations: 8.938 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.09678, allocations: 8.047 kB / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.09679, allocations: 4 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-05/0.09681, allocations: 3.984 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.09682, allocations: 7.938 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.439e-05/0.09685, allocations: 0 / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.09686, allocations: 0 / 446.3 MB, free: 12.49 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 (sample.u,sample.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 5.585e-05/0.09692, allocations: 122.4 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.09697, allocations: 41.59 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.09701, allocations: 15.48 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.09701, allocations: 4.031 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.09702, allocations: 0 / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.09703, allocations: 0 / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.09715, allocations: 165.6 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.09715, allocations: 0 / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-06/0.09717, allocations: 4 kB / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.09717, allocations: 0 / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.09719, allocations: 4 kB / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.09719, allocations: 0 / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.0972, allocations: 7.938 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.09731, allocations: 160.2 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.09736, allocations: 92.94 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.09737, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.284e-05/0.09743, allocations: 4 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.025e-05/0.09747, allocations: 4 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.09747, allocations: 4.031 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.924e-05/0.09752, allocations: 99.25 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09752, allocations: 0 / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002126/0.09774, allocations: 4 kB / 447 MB, free: 11.67 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 (sample.u,sample.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 6.262e-05/0.09781, allocations: 95.25 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.341e-05/0.09791, allocations: 19.92 kB / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.09792, allocations: 0 / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.336e-05/0.09795, allocations: 12.12 kB / 447.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.0983, allocations: 15.97 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000275/0.09858, allocations: 187.1 kB / 447.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.09871, allocations: 0.6811 MB / 448 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.304e-05/0.09875, allocations: 15.44 kB / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.09875, allocations: 3.938 kB / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of Templates: time 0.001541/0.1003, allocations: 0.6014 MB / 448.7 MB, free: 9.973 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches