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.001481/0.001481, allocations: 108.2 kB / 16.92 MB, free: 6.332 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.002284/0.002284, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.266/1.266, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 46.02 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.079/0.08002, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00331/0.08337, allocations: 1.997 MB / 352.2 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.08522, allocations: 1.126 MB / 353.3 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.08539, allocations: 7.938 kB / 353.3 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008227/0.08623, allocations: 302.5 kB / 353.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000518/0.08675, allocations: 195.3 kB / 353.8 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.08747, allocations: 301.6 kB / 354.1 MB, free: 428 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004371/0.08792, allocations: 347.1 kB / 354.4 MB, free: 80 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.08809, allocations: 52.38 kB / 354.5 MB, free: 24 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.08832, allocations: 143.5 kB / 354.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.08853, allocations: 147.4 kB / 354.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.08857, allocations: 16 kB / 354.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.08876, allocations: 79.89 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.08888, allocations: 87.73 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.08905, allocations: 123.2 kB / 355 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.08946, allocations: 347.1 kB / 355.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.08948, allocations: 0 / 355.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08949, allocations: 0 / 355.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.0895, allocations: 0 / 355.4 MB, free: 15.1 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.0009342/0.09044, allocations: 0.6611 MB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.09048, allocations: 8.031 kB / 356 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.09053, allocations: 42.73 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.579e-05/0.09061, allocations: 32.56 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.09103, allocations: 331.7 kB / 356.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.09106, allocations: 11.98 kB / 356.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.09109, allocations: 8 kB / 356.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.09137, allocations: 153.6 kB / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.09139, allocations: 0 / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.09141, allocations: 7.984 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.09143, allocations: 7.938 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.09159, allocations: 63.97 kB / 356.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006393/0.09224, allocations: 0.4885 MB / 357.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.09257, allocations: 130.8 kB / 357.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.09269, allocations: 56.78 kB / 357.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.09272, allocations: 7.938 kB / 357.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002112/0.09294, allocations: 111.3 kB / 357.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 4.949e-06/0.09295, allocations: 3.984 kB / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004773/0.09343, allocations: 209.2 kB / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.0935, allocations: 110.8 kB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004393/0.09395, allocations: 440.4 kB / 358.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.09398, allocations: 33.7 kB / 358.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.0941, allocations: 167.9 kB / 358.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/0.09414, allocations: 35.55 kB / 358.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.09421, allocations: 45.7 kB / 358.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.09433, allocations: 338.8 kB / 358.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.09445, allocations: 47.92 kB / 358.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.09459, allocations: 102 kB / 359 MB, free: 11.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.09481, allocations: 113.7 kB / 359.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.09482, allocations: 0 / 359.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003146/0.09514, allocations: 181.2 kB / 359.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.09517, allocations: 7.984 kB / 359.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.09518, allocations: 0 / 359.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.0952, allocations: 4 kB / 359.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.09531, allocations: 16 kB / 359.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.09533, allocations: 11.97 kB / 359.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.09543, allocations: 23.78 kB / 359.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.09545, allocations: 4 kB / 359.3 MB, free: 10.84 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.0001488/0.09561, allocations: 171.6 kB / 359.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.09566, allocations: 35.56 kB / 359.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.282e-05/0.09573, allocations: 30.94 kB / 359.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.09574, allocations: 0 / 359.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.09575, allocations: 0 / 359.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.09576, allocations: 4 kB / 359.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.09601, allocations: 301.4 kB / 359.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.09602, allocations: 0 / 359.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.956e-05/0.09608, allocations: 15.92 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.09608, allocations: 0 / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.09611, allocations: 12 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.09611, allocations: 0 / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.09612, allocations: 3.938 kB / 359.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.09644, allocations: 200.6 kB / 360.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.09652, allocations: 104.7 kB / 360.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.09658, allocations: 11.98 kB / 360.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.09666, allocations: 4 kB / 360.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.09673, allocations: 15.98 kB / 360.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.09675, allocations: 19.92 kB / 360.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.09707, allocations: 311 kB / 360.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09707, allocations: 0 / 360.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.09736, allocations: 51.98 kB / 360.6 MB, free: 9.484 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.001418/0.09879, allocations: 1.068 MB / 361.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.0991, allocations: 127.8 kB / 361.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.09912, allocations: 4 kB / 361.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.09925, allocations: 59.2 kB / 361.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.09966, allocations: 72.98 kB / 361.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.1029, allocations: 2.842 MB / 364.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1032, allocations: 0.7868 MB / 365.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.1033, allocations: 38.27 kB / 365.6 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.1035, allocations: 99.39 kB / 365.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1035, allocations: 0 / 365.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7731/0.8765, allocations: 7.032 MB / 372.7 MB, free: 25.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.97, allocations: 8.203 kB / 372.7 MB, free: 25.18 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