Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001805/0.001805, allocations: 70.89 kB / 21.24 MB, free: 0.5469 MB / 14.72 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.002219/0.002219, allocations: 161.8 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 177.2 MB / 204.9 MB, free: 9.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 55.33 kB / 325.5 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.09738, allocations: 53.34 MB / 378.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003906/0.1013, allocations: 1.968 MB / 380.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.1037, allocations: 1.22 MB / 382.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.1038, allocations: 7.938 kB / 382.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009241/0.1048, allocations: 319.1 kB / 382.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006097/0.1054, allocations: 258 kB / 382.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005511/0.1059, allocations: 231.4 kB / 382.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004861/0.1064, allocations: 363 kB / 383.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.1066, allocations: 48.78 kB / 383.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.1068, allocations: 143.5 kB / 383.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002343/0.107, allocations: 171.2 kB / 383.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.977e-05/0.107, allocations: 20 kB / 383.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.1072, allocations: 91.86 kB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.1074, allocations: 79.75 kB / 383.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.1075, allocations: 99.39 kB / 383.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005062/0.108, allocations: 366.4 kB / 384.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.108, allocations: 4 kB / 384.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.108, allocations: 0 / 384.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.108, allocations: 0 / 384.2 MB, free: 10.32 MB / 350.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.001125/0.1091, allocations: 0.6049 MB / 384.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.1092, allocations: 8.031 kB / 384.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.572e-05/0.1093, allocations: 36.7 kB / 384.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004904/0.1098, allocations: 288.7 kB / 385.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.1098, allocations: 8.375 kB / 385.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.1098, allocations: 20.11 kB / 385.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.1101, allocations: 117.5 kB / 385.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.1101, allocations: 4 kB / 385.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.1101, allocations: 3.984 kB / 385.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1101, allocations: 0 / 385.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1103, allocations: 79.95 kB / 385.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006941/0.111, allocations: 412.1 kB / 385.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.1114, allocations: 130.6 kB / 385.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1115, allocations: 52.83 kB / 386 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.1115, allocations: 0 / 386 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.1117, allocations: 115.3 kB / 386.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.1117, allocations: 0 / 386.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005408/0.1123, allocations: 236.3 kB / 386.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.1123, allocations: 55.39 kB / 386.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005768/0.1129, allocations: 461.6 kB / 386.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.1129, allocations: 29.7 kB / 386.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.1131, allocations: 168.1 kB / 387 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.934e-05/0.1131, allocations: 43.67 kB / 387.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/0.1132, allocations: 41.7 kB / 387.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1134, allocations: 342.8 kB / 387.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.1135, allocations: 47.98 kB / 387.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.1137, allocations: 143.7 kB / 387.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.1139, allocations: 114.5 kB / 387.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1139, allocations: 0 / 387.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000351/0.1143, allocations: 184.1 kB / 387.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.1143, allocations: 8 kB / 387.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1143, allocations: 8.031 kB / 387.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1143, allocations: 3.938 kB / 387.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.1144, allocations: 35.86 kB / 388 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.1144, allocations: 0 / 388 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.1145, allocations: 19.88 kB / 388 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.1146, allocations: 8 kB / 388 MB, free: 6.34 MB / 350.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.0001823/0.1147, allocations: 167.8 kB / 388.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.209e-05/0.1148, allocations: 31.8 kB / 388.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004223/0.1152, allocations: 215.2 kB / 388.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1152, allocations: 0 / 388.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1152, allocations: 0 / 388.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1152, allocations: 4 kB / 388.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002623/0.1155, allocations: 225.2 kB / 388.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1155, allocations: 0 / 388.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.935e-05/0.1155, allocations: 19.92 kB / 388.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1155, allocations: 0 / 388.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1156, allocations: 4 kB / 388.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.1156, allocations: 7.938 kB / 388.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.1156, allocations: 0 / 388.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.116, allocations: 220.8 kB / 388.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.43e-05/0.116, allocations: 31.73 kB / 388.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.1161, allocations: 8 kB / 388.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-05/0.1162, allocations: 15.92 kB / 388.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.1162, allocations: 7.984 kB / 388.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.868e-05/0.1162, allocations: 15.98 kB / 388.9 MB, free: 5.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004357/0.1167, allocations: 331.1 kB / 389.3 MB, free: 5 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1167, allocations: 0 / 389.3 MB, free: 5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.117, allocations: 51.94 kB / 389.3 MB, free: 4.949 MB / 350.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,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.001704/0.1187, allocations: 469.7 kB / 389.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.119, allocations: 119.9 kB / 389.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.119, allocations: 4 kB / 389.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.1192, allocations: 59.91 kB / 390 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.1196, allocations: 87.08 kB / 390 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009149/0.1205, allocations: 0.5168 MB / 390.6 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.1207, allocations: 174.2 kB / 390.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.1208, allocations: 42.27 kB / 390.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.394e-05/0.1209, allocations: 32.48 kB / 390.8 MB, free: 3.602 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1209, allocations: 4 kB / 390.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of Templates: time 0.009275/0.1302, allocations: 4.033 MB / 394.8 MB, free: 15.62 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.360333508928306]