Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001029/0.001029, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00112/0.002149, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001188/0.001188, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001626/0.002815, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.015/1.015, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08929/1.105, allocations: 53.87 MB / 243.8 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.763e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002275/0.002293, allocations: 2.084 MB / 247.1 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.003837, allocations: 1.289 MB / 248.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.003964, allocations: 4 kB / 248.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005206/0.004485, allocations: 298.9 kB / 248.7 MB, free: 9.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004002/0.004885, allocations: 278.9 kB / 249 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.005286, allocations: 222.7 kB / 249.2 MB, free: 9.465 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.005639, allocations: 359 kB / 249.5 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.005753, allocations: 42.8 kB / 249.6 MB, free: 9.074 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002912/0.006044, allocations: 281.5 kB / 249.8 MB, free: 8.801 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.006198, allocations: 131.7 kB / 250 MB, free: 8.672 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.006225, allocations: 20 kB / 250 MB, free: 8.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.006393, allocations: 99.73 kB / 250.1 MB, free: 8.555 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.001e-05/0.006473, allocations: 71.78 kB / 250.2 MB, free: 8.484 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.955e-05/0.006532, allocations: 55.81 kB / 250.2 MB, free: 8.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.00681, allocations: 239 kB / 250.4 MB, free: 8.195 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.651e-05/0.006827, allocations: 3.984 kB / 250.4 MB, free: 8.191 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.006827, allocations: 0 / 250.4 MB, free: 8.191 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.006845, allocations: 3.938 kB / 250.5 MB, free: 8.188 MB / 250.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.0006396/0.007484, allocations: 0.6149 MB / 251.1 MB, free: 7.535 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.007516, allocations: 12.62 kB / 251.1 MB, free: 7.523 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.834e-05/0.007564, allocations: 28.91 kB / 251.1 MB, free: 7.496 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.007896, allocations: 256.8 kB / 251.4 MB, free: 7.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.007918, allocations: 8.375 kB / 251.4 MB, free: 7.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/0.007935, allocations: 8.375 kB / 251.4 MB, free: 7.199 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.008102, allocations: 89.02 kB / 251.5 MB, free: 7.105 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.00811, allocations: 4.172 kB / 251.5 MB, free: 7.102 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.008122, allocations: 4.359 kB / 251.5 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.008128, allocations: 7.938 kB / 251.5 MB, free: 7.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.734e-05/0.008186, allocations: 27.98 kB / 251.5 MB, free: 7.062 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003896/0.008575, allocations: 273.4 kB / 251.8 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.008728, allocations: 125.2 kB / 251.9 MB, free: 6.645 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.728e-05/0.008765, allocations: 16.86 kB / 251.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.008778, allocations: 7.938 kB / 251.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.00892, allocations: 104.9 kB / 252 MB, free: 6.504 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.582e-06/0.008921, allocations: 4 kB / 252 MB, free: 6.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001877/0.009109, allocations: 109.6 kB / 252.1 MB, free: 6.387 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.009135, allocations: 51.41 kB / 252.2 MB, free: 6.324 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.009407, allocations: 333 kB / 252.5 MB, free: 5.984 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.00943, allocations: 33.69 kB / 252.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.553e-05/0.009496, allocations: 136.9 kB / 252.7 MB, free: 5.809 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.656e-05/0.009533, allocations: 43.67 kB / 252.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.009591, allocations: 45.67 kB / 252.8 MB, free: 5.715 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.009691, allocations: 350.7 kB / 253.1 MB, free: 5.363 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.336e-05/0.009725, allocations: 14.83 kB / 253.1 MB, free: 5.348 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-05/0.009795, allocations: 103.7 kB / 253.2 MB, free: 5.219 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.679e-05/0.009882, allocations: 75.34 kB / 253.3 MB, free: 5.137 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.009884, allocations: 0 / 253.3 MB, free: 5.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001449/0.01003, allocations: 104.4 kB / 253.4 MB, free: 5.027 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.01004, allocations: 8 kB / 253.4 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.01005, allocations: 0 / 253.4 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.387e-06/0.01006, allocations: 0 / 253.4 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.01016, allocations: 32.08 kB / 253.4 MB, free: 4.988 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.01016, allocations: 0 / 253.4 MB, free: 4.988 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.08e-05/0.01023, allocations: 23.88 kB / 253.5 MB, free: 4.965 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.01024, allocations: 3.938 kB / 253.5 MB, free: 4.961 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.373e-05/0.01033, allocations: 134.5 kB / 253.6 MB, free: 4.82 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.01037, allocations: 23.97 kB / 253.6 MB, free: 4.797 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/0.01053, allocations: 112.5 kB / 253.7 MB, free: 4.684 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.01054, allocations: 0 / 253.7 MB, free: 4.684 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.01054, allocations: 4 kB / 253.7 MB, free: 4.68 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01054, allocations: 7.984 kB / 253.7 MB, free: 4.672 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.0107, allocations: 149.6 kB / 253.9 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.0107, allocations: 0 / 253.9 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.466e-05/0.01074, allocations: 15.98 kB / 253.9 MB, free: 4.492 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.187e-05/0.01078, allocations: 23.81 kB / 253.9 MB, free: 4.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.01078, allocations: 4 kB / 253.9 MB, free: 4.465 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.01079, allocations: 4 kB / 253.9 MB, free: 4.461 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01079, allocations: 0 / 253.9 MB, free: 4.461 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.01079, allocations: 4 kB / 253.9 MB, free: 4.457 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.01093, allocations: 145.3 kB / 254.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.01096, allocations: 4 kB / 254.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.296e-05/0.01101, allocations: 12 kB / 254.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.01105, allocations: 15.97 kB / 254.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.01107, allocations: 4 kB / 254.1 MB, free: 4.262 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001404/0.01121, allocations: 147.5 kB / 254.3 MB, free: 4.113 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01121, allocations: 0 / 254.3 MB, free: 4.113 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002263/0.01143, allocations: 51.94 kB / 254.3 MB, free: 4.062 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.001415/0.01285, allocations: 0.5533 MB / 254.9 MB, free: 3.73 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.013, allocations: 76.75 kB / 254.9 MB, free: 3.652 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.01301, allocations: 4 kB / 254.9 MB, free: 3.648 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.919e-05/0.01307, allocations: 48.67 kB / 255 MB, free: 3.598 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.01333, allocations: 110.7 kB / 255.1 MB, free: 3.496 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000728/0.01406, allocations: 458.7 kB / 255.5 MB, free: 3.02 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.64e-05/0.01413, allocations: 100.2 kB / 255.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.878e-05/0.01423, allocations: 46.36 kB / 255.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.01436, allocations: 99.3 kB / 255.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01436, allocations: 0 / 255.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of Templates: time 0.007714/0.02208, allocations: 4.489 MB / 260.3 MB, free: 14.32 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.708181763999164]