Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 198.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 244.7 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008456/0.0008453, allocations: 100 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002219, allocations: 11.98 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.183, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001597/0.1846, allocations: 1.698 MB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.186, allocations: 1.198 MB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.67e-05/0.1861, allocations: 7.938 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005992/0.1867, allocations: 276.6 kB / 411.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000356/0.187, allocations: 206.2 kB / 411.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005049/0.1876, allocations: 256.5 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.1878, allocations: 315.1 kB / 412.1 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.1879, allocations: 64.7 kB / 412.1 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.188, allocations: 131.4 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.1882, allocations: 135.4 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.1882, allocations: 4 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1883, allocations: 67.89 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.914e-05/0.1884, allocations: 67.75 kB / 412.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.108e-05/0.1885, allocations: 133 kB / 412.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.1887, allocations: 276.5 kB / 412.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1887, allocations: 0 / 412.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1887, allocations: 0 / 412.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1887, allocations: 0 / 412.9 MB, free: 22.91 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000639/0.1894, allocations: 0.6223 MB / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.1894, allocations: 12.03 kB / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.308e-05/0.1895, allocations: 42.75 kB / 413.6 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.838e-05/0.1895, allocations: 40.48 kB / 413.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.1898, allocations: 334.3 kB / 414 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1898, allocations: 8.375 kB / 414 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.1899, allocations: 15.94 kB / 414 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.1901, allocations: 145.7 kB / 414.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1901, allocations: 3.938 kB / 414.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1901, allocations: 8 kB / 414.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1901, allocations: 0 / 414.1 MB, free: 21.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.1903, allocations: 67.95 kB / 414.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005005/0.1908, allocations: 0.5042 MB / 414.7 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.1911, allocations: 130.8 kB / 414.8 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.737e-05/0.1912, allocations: 44.78 kB / 414.9 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.1912, allocations: 4 kB / 414.9 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001779/0.1914, allocations: 112.1 kB / 415 MB, free: 20.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1914, allocations: 0 / 415 MB, free: 20.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003729/0.1918, allocations: 220.3 kB / 415.2 MB, free: 20.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.1918, allocations: 106.8 kB / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003486/0.1922, allocations: 457.5 kB / 415.8 MB, free: 19.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1922, allocations: 33.7 kB / 415.8 MB, free: 19.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.1923, allocations: 168 kB / 416 MB, free: 19.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.1923, allocations: 35.55 kB / 416 MB, free: 19.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.1923, allocations: 4 kB / 416 MB, free: 19.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.954e-05/0.1924, allocations: 342.8 kB / 416.3 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.815e-05/0.1925, allocations: 47.97 kB / 416.4 MB, free: 19.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.1926, allocations: 100.4 kB / 416.5 MB, free: 19.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.1928, allocations: 106.4 kB / 416.6 MB, free: 18.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1928, allocations: 4 kB / 416.6 MB, free: 18.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002414/0.193, allocations: 179.9 kB / 416.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.193, allocations: 15.81 kB / 416.8 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.193, allocations: 0 / 416.8 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.1931, allocations: 4 kB / 416.8 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.815e-05/0.1932, allocations: 23.98 kB / 416.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1932, allocations: 4 kB / 416.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1933, allocations: 19.91 kB / 416.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.1933, allocations: 8 kB / 416.8 MB, free: 18.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001119/0.1934, allocations: 175.5 kB / 417 MB, free: 18.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.127e-05/0.1935, allocations: 31.56 kB / 417 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.598e-05/0.1935, allocations: 38.97 kB / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1935, allocations: 0 / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1935, allocations: 0 / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1936, allocations: 3.984 kB / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.1937, allocations: 305.4 kB / 417.4 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1937, allocations: 4 kB / 417.4 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.494e-05/0.1938, allocations: 15.94 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1938, allocations: 3.938 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1938, allocations: 3.984 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1938, allocations: 0 / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1938, allocations: 4 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.1941, allocations: 192.7 kB / 417.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.271e-05/0.1941, allocations: 124.6 kB / 417.7 MB, free: 17.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.606e-05/0.1942, allocations: 4 kB / 417.7 MB, free: 17.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.091e-05/0.1943, allocations: 11.98 kB / 417.7 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.1943, allocations: 15.98 kB / 417.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.1943, allocations: 4 kB / 417.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002423/0.1946, allocations: 331.1 kB / 418.1 MB, free: 17.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1946, allocations: 0 / 418.1 MB, free: 17.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.1948, allocations: 55.91 kB / 418.1 MB, free: 17.31 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001067/0.1959, allocations: 1.062 MB / 419.2 MB, free: 16.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002327/0.1962, allocations: 119.8 kB / 419.3 MB, free: 16.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1962, allocations: 4.125 kB / 419.3 MB, free: 16.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1963, allocations: 67.56 kB / 419.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.1967, allocations: 73.11 kB / 419.4 MB, free: 16.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.1986, allocations: 1.735 MB / 421.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.1988, allocations: 0.7833 MB / 422 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.1989, allocations: 91.41 kB / 422.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1989, allocations: 0 / 422.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.117/3.316, allocations: 5.109 MB / 427.2 MB, free: 8.297 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches