Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_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.0009143/0.0009143, allocations: 96.62 kB / 17.3 MB, free: 6.387 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.0007624/0.0007623, allocations: 175.6 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005525/0.0005532, allocations: 16 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.09188, allocations: 47.57 MB / 329 MB, free: 3.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002582/0.09452, allocations: 1.696 MB / 330.7 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.09624, allocations: 1.022 MB / 331.8 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.875e-05/0.09634, allocations: 0 / 331.8 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006978/0.09705, allocations: 287.3 kB / 332 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003615/0.09742, allocations: 187.5 kB / 332.2 MB, free: 488 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.098, allocations: 235.6 kB / 332.5 MB, free: 252 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.0984, allocations: 339.2 kB / 332.8 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.09857, allocations: 60.38 kB / 332.8 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.09874, allocations: 119.3 kB / 333 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/0.09893, allocations: 135.4 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.09896, allocations: 7.938 kB / 333.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.09911, allocations: 59.97 kB / 333.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.974e-05/0.09921, allocations: 75.73 kB / 333.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.09934, allocations: 140.9 kB / 333.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.09968, allocations: 323.1 kB / 333.7 MB, free: 15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.09969, allocations: 0 / 333.7 MB, free: 15 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.0997, allocations: 0 / 333.7 MB, free: 15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.319e-06/0.09971, allocations: 0 / 333.7 MB, free: 15 MB / 286.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.0008093/0.1005, allocations: 0.6184 MB / 334.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1006, allocations: 12.03 kB / 334.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.598e-05/0.1006, allocations: 42.73 kB / 334.4 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.096e-05/0.1007, allocations: 36.56 kB / 334.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.1011, allocations: 324 kB / 334.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.1011, allocations: 12.31 kB / 334.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.1012, allocations: 15.94 kB / 334.7 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.1014, allocations: 140.2 kB / 334.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.1015, allocations: 0 / 334.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.1015, allocations: 4 kB / 334.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1015, allocations: 4 kB / 334.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.1017, allocations: 79.81 kB / 335 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.1023, allocations: 492.4 kB / 335.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.1027, allocations: 142.6 kB / 335.6 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.1028, allocations: 48.83 kB / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.1028, allocations: 3.938 kB / 335.6 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.103, allocations: 122.9 kB / 335.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.746e-06/0.1031, allocations: 0 / 335.8 MB, free: 12.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004775/0.1035, allocations: 213.2 kB / 336 MB, free: 12.53 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/0.1036, allocations: 110.8 kB / 336.1 MB, free: 12.39 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004668/0.1041, allocations: 428.4 kB / 336.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.1041, allocations: 29.7 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.1043, allocations: 175.9 kB / 336.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.671e-05/0.1043, allocations: 35.55 kB / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.1044, allocations: 29.7 kB / 336.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1045, allocations: 342.8 kB / 337.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.1046, allocations: 43.98 kB / 337.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.1048, allocations: 105.9 kB / 337.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.105, allocations: 106.5 kB / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.105, allocations: 0 / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003046/0.1053, allocations: 173.2 kB / 337.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1053, allocations: 7.938 kB / 337.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1053, allocations: 0 / 337.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1053, allocations: 8.062 kB / 337.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.1055, allocations: 23.92 kB / 337.5 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1055, allocations: 4 kB / 337.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1056, allocations: 19.84 kB / 337.6 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.1056, allocations: 4 kB / 337.6 MB, free: 10.82 MB / 286.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.0001806/0.1058, allocations: 175.5 kB / 337.7 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-05/0.1058, allocations: 35.56 kB / 337.8 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.227e-05/0.1059, allocations: 34.94 kB / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1059, allocations: 4 kB / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.1059, allocations: 0 / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.1059, allocations: 3.984 kB / 337.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.1062, allocations: 297.4 kB / 338.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1062, allocations: 0 / 338.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.85e-05/0.1063, allocations: 7.984 kB / 338.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1063, allocations: 7.938 kB / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.1063, allocations: 4 kB / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1063, allocations: 0 / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1063, allocations: 0 / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.1067, allocations: 209.7 kB / 338.3 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.1068, allocations: 120.6 kB / 338.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.1069, allocations: 7.938 kB / 338.5 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/0.1069, allocations: 11.98 kB / 338.5 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.107, allocations: 11.98 kB / 338.5 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.107, allocations: 8 kB / 338.5 MB, free: 9.797 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003123/0.1073, allocations: 319 kB / 338.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1074, allocations: 0 / 338.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002777/0.1076, allocations: 51.98 kB / 338.9 MB, free: 9.438 MB / 286.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.00151/0.1092, allocations: 1.054 MB / 339.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002813/0.1094, allocations: 127.8 kB / 340 MB, free: 8.242 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1095, allocations: 0 / 340 MB, free: 8.242 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.1096, allocations: 67.84 kB / 340.1 MB, free: 8.176 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005026/0.1101, allocations: 69.36 kB / 340.2 MB, free: 8.105 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003424/0.1135, allocations: 2.89 MB / 343.1 MB, free: 5.117 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.1139, allocations: 0.7714 MB / 343.8 MB, free: 4.32 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.1141, allocations: 50.25 kB / 343.9 MB, free: 4.273 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.1142, allocations: 95.39 kB / 344 MB, free: 4.18 MB / 286.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1142, allocations: 3.938 kB / 344 MB, free: 4.176 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01775/0.132, allocations: 6.511 MB / 350.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002864/0.1323, allocations: 231.7 kB / 350.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.99/2.122, allocations: 0 / 350.7 MB, free: 13.39 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches