Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008827/0.0008827, allocations: 95.31 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000923/0.0009233, allocations: 184 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004099/0.0004097, allocations: 8 kB / 301.5 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1389, allocations: 50.4 MB / 351.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00303/0.142, allocations: 1.711 MB / 353.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.1444, allocations: 1.091 MB / 354.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000267/0.1447, allocations: 4 kB / 354.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009945/0.1457, allocations: 287.3 kB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005534/0.1463, allocations: 191.5 kB / 355.2 MB, free: 72 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008741/0.1471, allocations: 270.6 kB / 355.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000563/0.1477, allocations: 339.1 kB / 355.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1479, allocations: 60.33 kB / 355.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.1482, allocations: 115.5 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.1484, allocations: 131.4 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.1485, allocations: 8 kB / 356.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.1487, allocations: 63.89 kB / 356.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1488, allocations: 75.75 kB / 356.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.149, allocations: 136.9 kB / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.1495, allocations: 331 kB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1495, allocations: 0 / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1495, allocations: 0 / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.1495, allocations: 0 / 356.7 MB, free: 14.57 MB / 302.1 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.001131/0.1506, allocations: 0.6106 MB / 357.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.1507, allocations: 16.03 kB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.682e-05/0.1508, allocations: 38.75 kB / 357.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.1509, allocations: 36.56 kB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006115/0.1516, allocations: 335.7 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.1516, allocations: 8 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.1516, allocations: 12 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003535/0.152, allocations: 152 kB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.152, allocations: 0 / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.152, allocations: 4 kB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.1521, allocations: 8 kB / 357.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.1523, allocations: 67.97 kB / 358 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009439/0.1532, allocations: 0.4886 MB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.1536, allocations: 130.7 kB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.1538, allocations: 44.84 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.1538, allocations: 3.938 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.1541, allocations: 122.4 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.794e-06/0.1541, allocations: 0 / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006092/0.1547, allocations: 213.2 kB / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.1549, allocations: 110.8 kB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.1555, allocations: 428.5 kB / 359.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.1555, allocations: 33.64 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.1557, allocations: 167.9 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.579e-05/0.1557, allocations: 39.55 kB / 359.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.343e-05/0.1558, allocations: 29.7 kB / 359.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.156, allocations: 338.8 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1561, allocations: 43.97 kB / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.1563, allocations: 104.9 kB / 360.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.1565, allocations: 113.5 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1565, allocations: 0 / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003216/0.1568, allocations: 173.2 kB / 360.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1569, allocations: 4 kB / 360.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1569, allocations: 12.05 kB / 360.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1569, allocations: 0 / 360.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.157, allocations: 16 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.157, allocations: 7.938 kB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.1572, allocations: 27.77 kB / 360.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.1572, allocations: 4 kB / 360.6 MB, free: 10.39 MB / 302.1 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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001914/0.1574, allocations: 171.6 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.1575, allocations: 39.55 kB / 360.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-05/0.1575, allocations: 30.94 kB / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1575, allocations: 4 kB / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1576, allocations: 0 / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.1576, allocations: 0 / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.1579, allocations: 305.4 kB / 361.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1579, allocations: 0 / 361.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.961e-05/0.1579, allocations: 15.92 kB / 361.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1579, allocations: 0 / 361.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1579, allocations: 4 kB / 361.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.158, allocations: 4 kB / 361.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.158, allocations: 8 kB / 361.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.1583, allocations: 196.6 kB / 361.3 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.657e-05/0.1584, allocations: 116.7 kB / 361.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.1584, allocations: 4 kB / 361.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.438e-05/0.1585, allocations: 11.98 kB / 361.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.476e-05/0.1586, allocations: 15.98 kB / 361.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.1586, allocations: 8 kB / 361.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.159, allocations: 319 kB / 361.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.159, allocations: 0 / 361.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.1593, allocations: 51.91 kB / 361.9 MB, free: 9.02 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001759/0.1611, allocations: 1.061 MB / 362.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003737/0.1615, allocations: 122.8 kB / 363 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1615, allocations: 0 / 363 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.1617, allocations: 63.91 kB / 363.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.1621, allocations: 61.39 kB / 363.2 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004175/0.1663, allocations: 2.899 MB / 366.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.1669, allocations: 0.7791 MB / 366.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001612/0.1671, allocations: 42.25 kB / 366.9 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.1672, allocations: 91.39 kB / 367 MB, free: 3.918 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1672, allocations: 0 / 367 MB, free: 3.918 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2209/0.3882, allocations: 6.503 MB / 373.5 MB, free: 24.85 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/0.3884, allocations: 227.5 kB / 373.7 MB, free: 24.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.115/2.504, allocations: 0 / 373.7 MB, free: 24.6 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches