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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008057, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008033/0.0008033, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8853/0.8853, allocations: 173.4 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.419e-05, allocations: 2.281 kB / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002437/0.002461, allocations: 1.931 MB / 320.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.003938, allocations: 1.102 MB / 321.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.004055, allocations: 0 / 321.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005995/0.004654, allocations: 307 kB / 321.7 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002974/0.004952, allocations: 219.2 kB / 322 MB, free: 2.816 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005349/0.005487, allocations: 304.9 kB / 322.3 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.005847, allocations: 343 kB / 322.6 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.005977, allocations: 44.48 kB / 322.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.006168, allocations: 191.5 kB / 322.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.006301, allocations: 135.6 kB / 323 MB, free: 1.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.006328, allocations: 16 kB / 323 MB, free: 1.805 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.006471, allocations: 87.86 kB / 323.1 MB, free: 1.719 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.006554, allocations: 91.69 kB / 323.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.298e-05/0.006627, allocations: 71.77 kB / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.006969, allocations: 350.8 kB / 323.6 MB, free: 1.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.006972, allocations: 4 kB / 323.6 MB, free: 1.211 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.006974, allocations: 4 kB / 323.6 MB, free: 1.207 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.006979, allocations: 0 / 323.6 MB, free: 1.207 MB / 282.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.0006483/0.007627, allocations: 0.5887 MB / 324.2 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.007662, allocations: 8.922 kB / 324.2 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.136e-05/0.007693, allocations: 46.73 kB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.977e-05/0.007743, allocations: 32.75 kB / 324.2 MB, free: 496 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.008033, allocations: 265.6 kB / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.008048, allocations: 12.12 kB / 324.5 MB, free: 196 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.008065, allocations: 16 kB / 324.5 MB, free: 180 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.008237, allocations: 121.6 kB / 324.6 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.008244, allocations: 0 / 324.6 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.008255, allocations: 4 kB / 324.7 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.00826, allocations: 4 kB / 324.7 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.008373, allocations: 75.81 kB / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004707/0.008843, allocations: 431.5 kB / 325.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.009032, allocations: 134.7 kB / 325.3 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.314e-05/0.009095, allocations: 48.83 kB / 325.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.009109, allocations: 0 / 325.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.009251, allocations: 123.2 kB / 325.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 9.72e-07/0.009252, allocations: 0 / 325.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003177/0.00957, allocations: 232.6 kB / 325.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.009599, allocations: 55.41 kB / 325.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.009913, allocations: 432.5 kB / 326.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.009932, allocations: 37.64 kB / 326.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.01002, allocations: 168 kB / 326.4 MB, free: 14.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.01005, allocations: 35.69 kB / 326.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.0101, allocations: 45.7 kB / 326.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.01019, allocations: 342.8 kB / 326.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.295e-05/0.01026, allocations: 43.98 kB / 326.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.01036, allocations: 143.7 kB / 327 MB, free: 13.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.01048, allocations: 110.5 kB / 327.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01049, allocations: 4.031 kB / 327.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001878/0.01067, allocations: 188.9 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.01069, allocations: 8 kB / 327.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.01069, allocations: 3.984 kB / 327.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.0107, allocations: 0 / 327.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-05/0.01079, allocations: 27.92 kB / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.01079, allocations: 0 / 327.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.452e-05/0.01084, allocations: 19.89 kB / 327.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.01085, allocations: 12.05 kB / 327.3 MB, free: 13.22 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 ($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.0001116/0.01097, allocations: 167.8 kB / 327.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.01099, allocations: 35.75 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.01122, allocations: 204.3 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.01122, allocations: 0 / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.01123, allocations: 4 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.01123, allocations: 3.984 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.0114, allocations: 244.6 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.0114, allocations: 0 / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.727e-05/0.01143, allocations: 19.98 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.01144, allocations: 3.938 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.01144, allocations: 0 / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.01145, allocations: 4 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01145, allocations: 0 / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000207/0.01165, allocations: 223.5 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.706e-05/0.01169, allocations: 43.61 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.01172, allocations: 8 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.721e-05/0.01175, allocations: 7.984 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.0118, allocations: 15.98 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.01182, allocations: 7.984 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002215/0.01204, allocations: 315 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01204, allocations: 0 / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002024/0.01224, allocations: 55.92 kB / 328.7 MB, free: 11.8 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,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.001085/0.01333, allocations: 1.107 MB / 329.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002007/0.01353, allocations: 123.9 kB / 329.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.01353, allocations: 4.062 kB / 329.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.841e-05/0.01361, allocations: 63.91 kB / 329.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.01385, allocations: 72.28 kB / 330 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.0162, allocations: 2.87 MB / 332.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.01631, allocations: 173.8 kB / 333.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.203e-05/0.0164, allocations: 50.25 kB / 333.1 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.01651, allocations: 100.5 kB / 333.2 MB, free: 7.297 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01651, allocations: 0 / 333.2 MB, free: 7.297 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02445/0.04096, allocations: 8.107 MB / 341.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.87/6.911, allocations: 8 kB / 341.3 MB, free: 15.25 MB / 314.7 MB " [Timeout remaining time 653] (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 --stepSize=0.00199601 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.611752054654062]