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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008346/0.0008346, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005862/0.005862, allocations: 162.9 kB / 24.69 MB, free: 9.41 MB / 18.57 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 0.8717/0.8717, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.218e-05, allocations: 2.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002482/0.002504, allocations: 1.931 MB / 300.4 MB, free: 1.574 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.003921, allocations: 1.014 MB / 301.4 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.004072, allocations: 7.938 kB / 301.4 MB, free: 0.543 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007267/0.004798, allocations: 315 kB / 301.7 MB, free: 240 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006757/0.005474, allocations: 223.1 kB / 301.9 MB, free: 16 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1194/0.1249, allocations: 249.4 kB / 302.1 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005266/0.1254, allocations: 350.1 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.1255, allocations: 33.55 kB / 302.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.1258, allocations: 187.2 kB / 302.7 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.1261, allocations: 136.9 kB / 302.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.1261, allocations: 19.5 kB / 302.9 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.1263, allocations: 90.16 kB / 302.9 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1264, allocations: 92.73 kB / 303 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.105e-05/0.1265, allocations: 72.3 kB / 303.1 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.127, allocations: 357 kB / 303.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.127, allocations: 2.25 kB / 303.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.127, allocations: 0 / 303.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.127, allocations: 0 / 303.5 MB, free: 13.27 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.0008272/0.1278, allocations: 0.585 MB / 304 MB, free: 12.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.1279, allocations: 12.89 kB / 304.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.551e-05/0.1279, allocations: 45.77 kB / 304.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.128, allocations: 38.73 kB / 304.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003746/0.1284, allocations: 271.1 kB / 304.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1284, allocations: 10.86 kB / 304.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.1284, allocations: 9.625 kB / 304.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.1286, allocations: 121 kB / 304.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1286, allocations: 1.703 kB / 304.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.1286, allocations: 8.625 kB / 304.6 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/0.1286, allocations: 3.344 kB / 304.6 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.1288, allocations: 77.41 kB / 304.6 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006313/0.1294, allocations: 434.7 kB / 305.1 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.1297, allocations: 131.5 kB / 305.2 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.798e-05/0.1298, allocations: 48.34 kB / 305.2 MB, free: 12.26 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.1298, allocations: 1.062 kB / 305.2 MB, free: 12.26 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002211/0.13, allocations: 113.1 kB / 305.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.943e-06/0.13, allocations: 0 / 305.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004619/0.1305, allocations: 229.9 kB / 305.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.615e-05/0.1305, allocations: 62.81 kB / 305.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004557/0.1309, allocations: 436.1 kB / 306.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.131, allocations: 32.52 kB / 306.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.143e-05/0.1311, allocations: 167.4 kB / 306.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.647e-05/0.1311, allocations: 41.62 kB / 306.3 MB, free: 11.69 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.1312, allocations: 41.45 kB / 306.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.683e-05/0.1312, allocations: 344.3 kB / 306.7 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.1313, allocations: 47.31 kB / 306.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1315, allocations: 141.8 kB / 306.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.1316, allocations: 123.1 kB / 307 MB, free: 11.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1316, allocations: 0 / 307 MB, free: 11.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003036/0.1319, allocations: 188.8 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.132, allocations: 5.062 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.132, allocations: 1.438 kB / 307.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.132, allocations: 10.09 kB / 307.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.1321, allocations: 22.94 kB / 307.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1321, allocations: 5.344 kB / 307.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.582e-05/0.1322, allocations: 23.75 kB / 307.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.1322, allocations: 5.75 kB / 307.2 MB, free: 11.02 MB / 282.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.0001256/0.1323, allocations: 166.6 kB / 307.4 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.1324, allocations: 29.23 kB / 307.4 MB, free: 10.87 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003511/0.1327, allocations: 209.6 kB / 307.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1327, allocations: 2.938 kB / 307.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1327, allocations: 4.453 kB / 307.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1327, allocations: 1.078 kB / 307.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.1329, allocations: 254.7 kB / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1329, allocations: 0 / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.584e-05/0.133, allocations: 12.02 kB / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.133, allocations: 1.172 kB / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.133, allocations: 7.766 kB / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.133, allocations: 0 / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.133, allocations: 5.891 kB / 307.9 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.1333, allocations: 223 kB / 308.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.1333, allocations: 27.58 kB / 308.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.1334, allocations: 7.531 kB / 308.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.609e-05/0.1335, allocations: 11.69 kB / 308.2 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.045e-05/0.1335, allocations: 14.88 kB / 308.2 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.1335, allocations: 14.67 kB / 308.2 MB, free: 10.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003176/0.1339, allocations: 316.9 kB / 308.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1339, allocations: 0 / 308.5 MB, free: 10.26 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003241/0.1342, allocations: 53.83 kB / 308.6 MB, free: 10.25 MB / 282.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.001328/0.1355, allocations: 1.104 MB / 309.7 MB, free: 9.336 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000295/0.1358, allocations: 115.9 kB / 309.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1358, allocations: 0 / 309.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.1359, allocations: 64.84 kB / 309.8 MB, free: 9.293 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.1363, allocations: 85.8 kB / 309.9 MB, free: 9.254 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.1398, allocations: 2.869 MB / 312.8 MB, free: 7.512 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.1399, allocations: 166.2 kB / 313 MB, free: 7.43 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001351/0.1401, allocations: 43.61 kB / 313 MB, free: 7.418 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1402, allocations: 99.69 kB / 313.1 MB, free: 7.348 MB / 282.7 MB Notification: Performance of SimCode: time 1.643e-06/0.1402, allocations: 0 / 313.1 MB, free: 7.348 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.1617, allocations: 8.129 MB / 321.2 MB, free: 4.246 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.936/7.098, allocations: 1.375 kB / 321.2 MB, free: 4.246 MB / 282.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.718250972218812]