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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 116 kB / 18.45 MB, free: 4.625 MB / 14.72 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.002031/0.002031, allocations: 194.9 kB / 21.4 MB, free: 1.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 207.6 MB / 231.8 MB, free: 4.105 MB / 174.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001688/0.001688, allocations: 55.92 kB / 342.2 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1079, allocations: 49.11 MB / 391.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003772/0.1117, allocations: 1.996 MB / 393.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1136, allocations: 1.061 MB / 394.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1137, allocations: 7.938 kB / 394.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009382/0.1147, allocations: 315.2 kB / 394.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005326/0.1152, allocations: 203.2 kB / 394.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006454/0.1158, allocations: 259.5 kB / 395.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.1163, allocations: 331.2 kB / 395.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1165, allocations: 56.23 kB / 395.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.1166, allocations: 143.4 kB / 395.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002813/0.1169, allocations: 155.3 kB / 395.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.58e-05/0.117, allocations: 20 kB / 395.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.1171, allocations: 79.94 kB / 395.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.1172, allocations: 91.67 kB / 396 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1174, allocations: 127.2 kB / 396.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005058/0.1179, allocations: 346.5 kB / 396.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1179, allocations: 0 / 396.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.63e-06/0.1179, allocations: 4 kB / 396.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1179, allocations: 0 / 396.5 MB, free: 3.57 MB / 318.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.0011/0.119, allocations: 0.6685 MB / 397.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1191, allocations: 15.97 kB / 397.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/0.1191, allocations: 38.75 kB / 397.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.328e-05/0.1192, allocations: 40.69 kB / 397.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005327/0.1197, allocations: 336.2 kB / 397.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.1198, allocations: 8.375 kB / 397.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.1198, allocations: 11.94 kB / 397.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.1201, allocations: 152 kB / 397.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1201, allocations: 0 / 397.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.1202, allocations: 4 kB / 397.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.1202, allocations: 8 kB / 397.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.1203, allocations: 71.94 kB / 397.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007984/0.1211, allocations: 496.2 kB / 398.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.1215, allocations: 130.7 kB / 398.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.1216, allocations: 44.83 kB / 398.5 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.1216, allocations: 4 kB / 398.5 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.1218, allocations: 111.2 kB / 398.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1218, allocations: 0 / 398.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005243/0.1224, allocations: 217.3 kB / 398.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.899e-05/0.1224, allocations: 110.8 kB / 398.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005576/0.123, allocations: 432.5 kB / 399.4 MB, free: 488 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.123, allocations: 29.7 kB / 399.4 MB, free: 452 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1232, allocations: 164.1 kB / 399.5 MB, free: 284 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.54e-05/0.1232, allocations: 43.67 kB / 399.6 MB, free: 240 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-05/0.1233, allocations: 41.7 kB / 399.6 MB, free: 192 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002414/0.1235, allocations: 342.8 kB / 400 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1237, allocations: 51.92 kB / 400 MB, free: 15.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.1238, allocations: 105.9 kB / 400.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.124, allocations: 110.4 kB / 400.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.124, allocations: 4 kB / 400.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003797/0.1244, allocations: 181.3 kB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1244, allocations: 7.938 kB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1244, allocations: 0 / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.1244, allocations: 4 kB / 400.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.1246, allocations: 23.92 kB / 400.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.1246, allocations: 7.984 kB / 400.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.704e-05/0.1247, allocations: 19.88 kB / 400.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.1247, allocations: 8.062 kB / 400.5 MB, free: 15.29 MB / 334.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.0001791/0.1249, allocations: 175.5 kB / 400.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.795e-05/0.1249, allocations: 31.75 kB / 400.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.173e-05/0.125, allocations: 42.86 kB / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.125, allocations: 0 / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.125, allocations: 0 / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.125, allocations: 0 / 400.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000371/0.1254, allocations: 301.4 kB / 401 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1254, allocations: 0 / 401 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.669e-05/0.1254, allocations: 12 kB / 401 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1254, allocations: 3.938 kB / 401 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1254, allocations: 8 kB / 401 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1254, allocations: 0 / 401 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1254, allocations: 0 / 401 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.1258, allocations: 209.4 kB / 401.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.1259, allocations: 108.8 kB / 401.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.495e-05/0.126, allocations: 8 kB / 401.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.1261, allocations: 11.98 kB / 401.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.1261, allocations: 11.98 kB / 401.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-05/0.1262, allocations: 4 kB / 401.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003646/0.1265, allocations: 319 kB / 401.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1265, allocations: 0 / 401.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.1269, allocations: 55.88 kB / 401.7 MB, free: 13.91 MB / 334.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.002213/0.1291, allocations: 1.063 MB / 402.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.1294, allocations: 107.9 kB / 402.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.1294, allocations: 4 kB / 402.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.1296, allocations: 55.91 kB / 403 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.13, allocations: 77.92 kB / 403.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.1341, allocations: 2.8 MB / 405.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/0.1346, allocations: 0.7791 MB / 406.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000144/0.1348, allocations: 50.27 kB / 406.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.1349, allocations: 95.39 kB / 406.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1349, allocations: 3.938 kB / 406.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.1734, allocations: 7.214 MB / 414 MB, free: 1.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.259/8.432, allocations: 12.39 kB / 414 MB, free: 1.418 MB / 334.1 MB " [Timeout remaining time 651] (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 --stepSize=0.00199601 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.92185374489054]