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.0009222/0.0009222, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.00118/0.00118, allocations: 158.9 kB / 25.75 MB, free: 8.949 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.8867/0.8867, allocations: 158.6 MB / 187.5 MB, free: 2.945 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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 251.1 MB, free: 7.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.941e-05/3.132e-05, allocations: 2.312 kB / 251.1 MB, free: 7.832 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003444/0.003476, allocations: 2.017 MB / 253.1 MB, free: 5.797 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.005073, allocations: 1.033 MB / 254.1 MB, free: 4.754 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.005184, allocations: 4 kB / 254.1 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007513/0.005935, allocations: 319 kB / 254.5 MB, free: 4.438 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.006214, allocations: 211.2 kB / 254.7 MB, free: 4.23 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003731/0.006587, allocations: 259.4 kB / 254.9 MB, free: 3.977 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.006894, allocations: 351 kB / 255.3 MB, free: 3.633 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.007032, allocations: 36.58 kB / 255.3 MB, free: 3.598 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.007201, allocations: 183.5 kB / 255.5 MB, free: 3.418 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.007593, allocations: 135.6 kB / 255.6 MB, free: 3.281 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.007625, allocations: 20 kB / 255.6 MB, free: 3.262 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.007773, allocations: 99.78 kB / 255.7 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.465e-05/0.007858, allocations: 83.69 kB / 255.8 MB, free: 3.082 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.1e-05/0.007929, allocations: 67.78 kB / 255.9 MB, free: 3.016 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.00822, allocations: 259 kB / 256.1 MB, free: 2.762 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.008225, allocations: 3.984 kB / 256.1 MB, free: 2.758 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008226, allocations: 0 / 256.1 MB, free: 2.758 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.008231, allocations: 0 / 256.1 MB, free: 2.758 MB / 234.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.0006622/0.008893, allocations: 0.6969 MB / 256.8 MB, free: 2.012 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.008932, allocations: 15.98 kB / 256.8 MB, free: 1.996 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.009004, allocations: 44.7 kB / 256.9 MB, free: 1.953 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.009313, allocations: 281.2 kB / 257.2 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.009335, allocations: 8.375 kB / 257.2 MB, free: 1.637 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.009354, allocations: 12.36 kB / 257.2 MB, free: 1.625 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.009522, allocations: 98.19 kB / 257.3 MB, free: 1.523 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.00953, allocations: 3.938 kB / 257.3 MB, free: 1.52 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.009543, allocations: 0 / 257.3 MB, free: 1.52 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.00955, allocations: 4 kB / 257.3 MB, free: 1.516 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.261e-05/0.009623, allocations: 35.97 kB / 257.3 MB, free: 1.48 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/0.01011, allocations: 459.3 kB / 257.8 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.0103, allocations: 91.22 kB / 257.9 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.496e-05/0.01036, allocations: 31.67 kB / 257.9 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.01038, allocations: 4 kB / 257.9 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001387/0.01052, allocations: 104.9 kB / 258 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.01052, allocations: 0 / 258 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002764/0.01079, allocations: 165.5 kB / 258.1 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.01082, allocations: 59.34 kB / 258.2 MB, free: 0.5 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.0111, allocations: 402.1 kB / 258.6 MB, free: 96 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.01112, allocations: 29.7 kB / 258.6 MB, free: 60 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.01123, allocations: 214.8 kB / 258.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.01126, allocations: 47.67 kB / 258.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.01131, allocations: 43.36 kB / 258.9 MB, free: 15.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.01144, allocations: 0.5196 MB / 259.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.275e-05/0.01149, allocations: 23.98 kB / 259.5 MB, free: 15.19 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.78e-05/0.01158, allocations: 129.8 kB / 259.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.01169, allocations: 82.03 kB / 259.7 MB, free: 14.94 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01169, allocations: 0 / 259.7 MB, free: 14.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001652/0.01186, allocations: 149.3 kB / 259.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.01187, allocations: 8 kB / 259.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.01188, allocations: 0 / 259.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.01189, allocations: 0 / 259.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.076e-05/0.01198, allocations: 27.92 kB / 259.9 MB, free: 14.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.01199, allocations: 3.938 kB / 259.9 MB, free: 14.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.721e-05/0.01204, allocations: 19.94 kB / 259.9 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.01205, allocations: 8.062 kB / 259.9 MB, free: 14.72 MB / 250.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 9.068e-05/0.01214, allocations: 174.5 kB / 260.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.01218, allocations: 35.8 kB / 260.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002147/0.01239, allocations: 156.5 kB / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01239, allocations: 3.984 kB / 260.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.0124, allocations: 4 kB / 260.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.0124, allocations: 3.938 kB / 260.3 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.01258, allocations: 236.5 kB / 260.5 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.01258, allocations: 0 / 260.5 MB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.143e-05/0.01262, allocations: 19.92 kB / 260.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.01262, allocations: 0 / 260.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.01263, allocations: 4 kB / 260.5 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.01263, allocations: 0 / 260.5 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01263, allocations: 0 / 260.5 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.01283, allocations: 207.6 kB / 260.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.01286, allocations: 31.75 kB / 260.7 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.01289, allocations: 4 kB / 260.8 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.59e-05/0.01293, allocations: 15.98 kB / 260.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.01299, allocations: 19.91 kB / 260.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.013, allocations: 4 kB / 260.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001625/0.01317, allocations: 266.9 kB / 261.1 MB, free: 13.48 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01317, allocations: 0 / 261.1 MB, free: 13.48 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001995/0.01337, allocations: 63.81 kB / 261.1 MB, free: 13.42 MB / 250.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.0008194/0.01418, allocations: 398.3 kB / 261.5 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.01434, allocations: 87.48 kB / 261.6 MB, free: 12.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.01435, allocations: 4 kB / 261.6 MB, free: 12.98 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.345e-05/0.01441, allocations: 51.61 kB / 261.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.01469, allocations: 92.09 kB / 261.7 MB, free: 12.84 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005269/0.01522, allocations: 438 kB / 262.2 MB, free: 12.38 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.984e-05/0.01528, allocations: 104.4 kB / 262.3 MB, free: 12.26 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.018e-05/0.01535, allocations: 38.25 kB / 262.3 MB, free: 12.22 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.0154, allocations: 36.48 kB / 262.3 MB, free: 12.19 MB / 250.7 MB Notification: Performance of SimCode: time 1.022e-06/0.0154, allocations: 0 / 262.3 MB, free: 12.19 MB / 250.7 MB Notification: Performance of Templates: time 0.006116/0.02152, allocations: 3.998 MB / 266.3 MB, free: 8.191 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6758533308748156]