Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.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) 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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00121/0.00121, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.255/1.255, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0006955/0.0006955, allocations: 82.38 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002925, allocations: 8 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1836, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001744/0.1854, allocations: 1.64 MB / 376.8 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.1866, allocations: 0.9954 MB / 377.8 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.994e-05/0.1867, allocations: 6.062 kB / 377.8 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006358/0.1873, allocations: 273.4 kB / 378.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.1876, allocations: 181.5 kB / 378.3 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.1881, allocations: 210.6 kB / 378.5 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002647/0.1884, allocations: 311.5 kB / 378.8 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.1885, allocations: 51.05 kB / 378.8 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1887, allocations: 125.9 kB / 378.9 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.1888, allocations: 123.5 kB / 379.1 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.1889, allocations: 6.469 kB / 379.1 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.189, allocations: 62.95 kB / 379.1 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.1891, allocations: 72.77 kB / 379.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.696e-05/0.1892, allocations: 134.8 kB / 379.3 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.1894, allocations: 256.4 kB / 379.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1894, allocations: 1.062 kB / 379.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1894, allocations: 0 / 379.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1894, allocations: 0 / 379.6 MB, free: 42.28 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.0006502/0.1901, allocations: 0.6118 MB / 380.2 MB, free: 41.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.1901, allocations: 8.469 kB / 380.2 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.674e-05/0.1902, allocations: 43.03 kB / 380.2 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.309e-05/0.1902, allocations: 40.14 kB / 380.3 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.1905, allocations: 333.4 kB / 380.6 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1905, allocations: 7.281 kB / 380.6 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.102e-05/0.1906, allocations: 13.62 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.1908, allocations: 148.5 kB / 380.8 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1908, allocations: 0 / 380.8 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.1909, allocations: 5.219 kB / 380.8 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1909, allocations: 2.125 kB / 380.8 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001468/0.191, allocations: 75.75 kB / 380.9 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.1915, allocations: 496.4 kB / 381.3 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.1918, allocations: 133.9 kB / 381.5 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.439e-05/0.1919, allocations: 48.19 kB / 381.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.192, allocations: 6.047 kB / 381.5 MB, free: 40.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.1921, allocations: 117.3 kB / 381.6 MB, free: 40.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.1922, allocations: 0 / 381.6 MB, free: 40.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004078/0.1926, allocations: 209.8 kB / 381.8 MB, free: 40.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.1926, allocations: 109.4 kB / 382 MB, free: 40.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.193, allocations: 426.5 kB / 382.4 MB, free: 40 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.193, allocations: 36.92 kB / 382.4 MB, free: 39.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.774e-05/0.1931, allocations: 168.1 kB / 382.6 MB, free: 39.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.1931, allocations: 41.8 kB / 382.6 MB, free: 39.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/0.1932, allocations: 5.156 kB / 382.6 MB, free: 39.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.1932, allocations: 343 kB / 383 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.485e-05/0.1933, allocations: 42.05 kB / 383 MB, free: 39.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.1934, allocations: 106.6 kB / 383.1 MB, free: 39.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.1936, allocations: 99.97 kB / 383.2 MB, free: 39.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1936, allocations: 1.125 kB / 383.2 MB, free: 39.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000273/0.1939, allocations: 178.1 kB / 383.4 MB, free: 39.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.1939, allocations: 11.72 kB / 383.4 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1939, allocations: 1.094 kB / 383.4 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.194, allocations: 1.031 kB / 383.4 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1941, allocations: 30.67 kB / 383.4 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1941, allocations: 1.125 kB / 383.4 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.599e-05/0.1942, allocations: 25.05 kB / 383.4 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.1942, allocations: 4.875 kB / 383.4 MB, free: 39.12 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.0001178/0.1943, allocations: 173.8 kB / 383.6 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.1944, allocations: 33.61 kB / 383.6 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.665e-05/0.1944, allocations: 35.41 kB / 383.7 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1944, allocations: 5.219 kB / 383.7 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1944, allocations: 1.125 kB / 383.7 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.1944, allocations: 0 / 383.7 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.1946, allocations: 300.6 kB / 384 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1946, allocations: 0 / 384 MB, free: 38.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.1947, allocations: 11.03 kB / 384 MB, free: 38.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1947, allocations: 5.094 kB / 384 MB, free: 38.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.1947, allocations: 2.406 kB / 384 MB, free: 38.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1947, allocations: 3.984 kB / 384 MB, free: 38.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1947, allocations: 1.188 kB / 384 MB, free: 38.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002723/0.195, allocations: 202.4 kB / 384.2 MB, free: 38.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.357e-05/0.1951, allocations: 118.5 kB / 384.3 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.1951, allocations: 10.02 kB / 384.3 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.157e-05/0.1952, allocations: 7.188 kB / 384.3 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.555e-05/0.1953, allocations: 21.53 kB / 384.4 MB, free: 38.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.1953, allocations: 5.812 kB / 384.4 MB, free: 38.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002676/0.1955, allocations: 316.9 kB / 384.7 MB, free: 38.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1956, allocations: 0 / 384.7 MB, free: 38.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002506/0.1958, allocations: 48.41 kB / 384.7 MB, free: 38.15 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.001072/0.1969, allocations: 1.071 MB / 385.8 MB, free: 37.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002489/0.1972, allocations: 115.4 kB / 385.9 MB, free: 37.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1972, allocations: 0 / 385.9 MB, free: 37.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.1973, allocations: 63.19 kB / 386 MB, free: 37.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.1977, allocations: 62.36 kB / 386 MB, free: 37.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.1996, allocations: 1.685 MB / 387.7 MB, free: 35.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001459/0.1998, allocations: 0.7755 MB / 388.5 MB, free: 34.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.1999, allocations: 95.34 kB / 388.6 MB, free: 34.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1999, allocations: 0 / 388.6 MB, free: 34.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.206/3.406, allocations: 4.947 MB / 393.5 MB, free: 29.86 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches