Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 193 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000832/0.0008319, allocations: 96.28 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002163/0.0002163, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2075, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1): time 0.001326/0.2089, allocations: 1.214 MB / 409.3 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002894/0.2092, allocations: 131.7 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.212e-05/0.2093, allocations: 0 / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.2094, allocations: 3.938 kB / 409.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.2095, allocations: 13.09 kB / 409.4 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.2097, allocations: 27.92 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.356e-05/0.2098, allocations: 27.92 kB / 409.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.52e-05/0.2099, allocations: 18.02 kB / 409.5 MB, free: 26.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.77e-05/0.2099, allocations: 11.94 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.069e-05/0.21, allocations: 11.92 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.21, allocations: 2.781 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.21, allocations: 3.938 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.819e-05/0.21, allocations: 7.984 kB / 409.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.661e-05/0.2101, allocations: 41.58 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.051e-05/0.2101, allocations: 27.94 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2102, allocations: 0 / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.2102, allocations: 4 kB / 409.6 MB, free: 26.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.2102, allocations: 0 / 409.6 MB, free: 26.14 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.0003482/0.2105, allocations: 366.1 kB / 409.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2106, allocations: 8.031 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.2106, allocations: 12.84 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.2108, allocations: 181.3 kB / 410.1 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.2108, allocations: 4.375 kB / 410.1 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.2108, allocations: 12.36 kB / 410.2 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.211, allocations: 112.2 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.2111, allocations: 0.7812 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.2111, allocations: 7.875 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2111, allocations: 3.562 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.898e-05/0.2112, allocations: 19.98 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002735/0.2114, allocations: 253.8 kB / 410.6 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.2116, allocations: 146.2 kB / 410.7 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.05e-05/0.2116, allocations: 29.77 kB / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.2117, allocations: 0 / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.2117, allocations: 34.55 kB / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.2117, allocations: 0 / 410.8 MB, free: 24.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001993/0.2119, allocations: 77.53 kB / 410.8 MB, free: 24.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.2119, allocations: 85.05 kB / 410.9 MB, free: 24.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.025e-05/0.212, allocations: 130.7 kB / 411 MB, free: 24.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.554e-06/0.212, allocations: 29.7 kB / 411.1 MB, free: 24.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.759e-05/0.2121, allocations: 84.14 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.855e-06/0.2121, allocations: 3.984 kB / 411.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.2121, allocations: 8.125 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.382e-05/0.2121, allocations: 310.8 kB / 411.5 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.927e-05/0.2122, allocations: 11.98 kB / 411.5 MB, free: 24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.921e-05/0.2122, allocations: 27.44 kB / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.599e-05/0.2123, allocations: 47.36 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2123, allocations: 0 / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.076e-05/0.2124, allocations: 73.41 kB / 411.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2124, allocations: 4 kB / 411.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.2124, allocations: 128 / 411.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.2124, allocations: 8 kB / 411.6 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.085e-05/0.2124, allocations: 3.938 kB / 411.6 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2125, allocations: 0 / 411.6 MB, free: 23.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.119e-05/0.2125, allocations: 11.98 kB / 411.7 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.271e-06/0.2125, allocations: 7.938 kB / 411.7 MB, free: 23.79 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.332e-05/0.2126, allocations: 117.8 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.2126, allocations: 49.59 kB / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.2127, allocations: 3.906 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2127, allocations: 8 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2127, allocations: 0 / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2127, allocations: 0 / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.2128, allocations: 173.5 kB / 412 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2128, allocations: 0 / 412 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-06/0.2128, allocations: 7.938 kB / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2128, allocations: 0 / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-06/0.2128, allocations: 0 / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2128, allocations: 0 / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2128, allocations: 4 kB / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001075/0.213, allocations: 168.3 kB / 412.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.213, allocations: 89 kB / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.213, allocations: 0 / 412.3 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.202e-05/0.2131, allocations: 4 kB / 412.3 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.551e-05/0.2131, allocations: 4 kB / 412.3 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.2131, allocations: 0 / 412.3 MB, free: 23.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.199e-05/0.2132, allocations: 108.1 kB / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.2132, allocations: 0 / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002081/0.2134, allocations: 11.94 kB / 412.4 MB, free: 22.94 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.163e-05/0.2135, allocations: 95.25 kB / 412.5 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.2136, allocations: 23.98 kB / 412.5 MB, free: 22.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2136, allocations: 0 / 412.5 MB, free: 22.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.353e-05/0.2136, allocations: 12.19 kB / 412.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.2139, allocations: 30.73 kB / 412.6 MB, free: 22.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002441/0.2142, allocations: 199 kB / 412.7 MB, free: 22.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.2143, allocations: 0.6877 MB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.957e-05/0.2143, allocations: 11.5 kB / 413.4 MB, free: 21.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2143, allocations: 0 / 413.4 MB, free: 21.82 MB / 298.7 MB Notification: Performance of Templates: time 0.001672/0.216, allocations: 0.6761 MB / 414.1 MB, free: 21.15 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample1/Sample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches