Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, allocations: 117.9 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002087/0.002087, allocations: 202.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.471/1.471, allocations: 230.5 MB / 258.1 MB, free: 8.137 MB / 206.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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.83 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3072, allocations: 53.32 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003882/0.3111, allocations: 2.047 MB / 434.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.3135, allocations: 1.302 MB / 435.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.3136, allocations: 7.938 kB / 435.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009224/0.3146, allocations: 303.2 kB / 435.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000595/0.3152, allocations: 262.7 kB / 435.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005814/0.3157, allocations: 219.5 kB / 436.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004607/0.3162, allocations: 355.1 kB / 436.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.3164, allocations: 44.72 kB / 436.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.3166, allocations: 147.4 kB / 436.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.3168, allocations: 159.4 kB / 436.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.3168, allocations: 20 kB / 436.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.317, allocations: 91.88 kB / 437 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.3172, allocations: 91.61 kB / 437.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.3173, allocations: 135.1 kB / 437.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005075/0.3178, allocations: 360 kB / 437.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3178, allocations: 0 / 437.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3178, allocations: 0 / 437.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.3178, allocations: 0 / 437.5 MB, free: 1.883 MB / 334.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.001155/0.319, allocations: 0.688 MB / 438.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.319, allocations: 8.031 kB / 438.2 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.61e-05/0.3191, allocations: 40.7 kB / 438.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005091/0.3196, allocations: 338.7 kB / 438.6 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.3196, allocations: 12.36 kB / 438.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.934e-05/0.3197, allocations: 16.12 kB / 438.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.32, allocations: 147.5 kB / 438.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.32, allocations: 0 / 438.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.32, allocations: 7.984 kB / 438.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.32, allocations: 4 kB / 438.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.3202, allocations: 71.91 kB / 438.9 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007961/0.321, allocations: 0.4886 MB / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.3213, allocations: 126.7 kB / 439.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3214, allocations: 44.84 kB / 439.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.3215, allocations: 3.984 kB / 439.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.3217, allocations: 111.3 kB / 439.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 3.467e-06/0.3217, allocations: 3.984 kB / 439.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005258/0.3222, allocations: 224.4 kB / 439.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.3223, allocations: 110.8 kB / 440 MB, free: 15.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005526/0.3229, allocations: 457.6 kB / 440.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.3229, allocations: 29.7 kB / 440.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3231, allocations: 172 kB / 440.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.3231, allocations: 43.67 kB / 440.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.606e-05/0.3232, allocations: 41.7 kB / 440.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.3234, allocations: 350.8 kB / 441 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.3235, allocations: 39.98 kB / 441.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.3237, allocations: 105.2 kB / 441.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002154/0.3239, allocations: 106.5 kB / 441.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3239, allocations: 0 / 441.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003361/0.3242, allocations: 178.3 kB / 441.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.3242, allocations: 7.938 kB / 441.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.3243, allocations: 4 kB / 441.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3243, allocations: 0 / 441.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.3244, allocations: 31.92 kB / 441.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.3244, allocations: 3.938 kB / 441.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3245, allocations: 23.95 kB / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.3245, allocations: 15.97 kB / 441.5 MB, free: 13.6 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.0001862/0.3247, allocations: 167.5 kB / 441.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.3248, allocations: 31.75 kB / 441.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004004/0.3252, allocations: 192.5 kB / 441.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3252, allocations: 0 / 441.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3252, allocations: 0 / 441.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3252, allocations: 0 / 441.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003446/0.3255, allocations: 317.4 kB / 442.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3255, allocations: 0 / 442.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.806e-05/0.3256, allocations: 7.938 kB / 442.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.3256, allocations: 11.88 kB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.3256, allocations: 0 / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3256, allocations: 0 / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3256, allocations: 4 kB / 442.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.3259, allocations: 195.6 kB / 442.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.826e-05/0.326, allocations: 124.8 kB / 442.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.492e-05/0.3261, allocations: 7.938 kB / 442.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.3262, allocations: 7.984 kB / 442.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.413e-05/0.3262, allocations: 15.98 kB / 442.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.3262, allocations: 4 kB / 442.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003919/0.3266, allocations: 331.1 kB / 442.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3266, allocations: 3.938 kB / 442.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.3269, allocations: 59.92 kB / 443 MB, free: 12.05 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 (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.001611/0.3285, allocations: 421.7 kB / 443.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000335/0.3289, allocations: 119.8 kB / 443.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3289, allocations: 0 / 443.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.329, allocations: 59.23 kB / 443.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/0.3294, allocations: 84.11 kB / 443.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009664/0.3304, allocations: 0.5446 MB / 444.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.3309, allocations: 0.7753 MB / 445 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.324e-05/0.3309, allocations: 31.42 kB / 445 MB, free: 10.14 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3309, allocations: 4 kB / 445 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Templates: time 0.007485/0.3384, allocations: 4.314 MB / 449.3 MB, free: 5.844 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.976995626930147]