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.001841/0.001841, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002197/0.002197, allocations: 160.9 kB / 24.27 MB, free: 172 kB / 18.57 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.652/1.652, allocations: 177 MB / 204.4 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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 2.445e-06/2.445e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.252e-05/4.497e-05, allocations: 2.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004244/0.004289, allocations: 1.996 MB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.006856, allocations: 1.215 MB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.006981, allocations: 4 kB / 275.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009543/0.007935, allocations: 315 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006585/0.008594, allocations: 259 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.00923, allocations: 231.3 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.009706, allocations: 367 kB / 276.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.009847, allocations: 48.84 kB / 276.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.01014, allocations: 195.4 kB / 276.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.01038, allocations: 139.6 kB / 276.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.01042, allocations: 20 kB / 276.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002077/0.01063, allocations: 83.88 kB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.01078, allocations: 99.67 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.0109, allocations: 71.77 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.01146, allocations: 366.7 kB / 277.5 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.01146, allocations: 0 / 277.5 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01146, allocations: 7.938 kB / 277.5 MB, free: 12.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.01147, allocations: 0 / 277.5 MB, free: 12.4 MB / 266.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.001235/0.0127, allocations: 0.5932 MB / 278.1 MB, free: 11.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.01275, allocations: 15.98 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.01286, allocations: 44.7 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000493/0.01335, allocations: 284.1 kB / 278.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.01338, allocations: 12.38 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.0134, allocations: 12.38 kB / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.01369, allocations: 128.2 kB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.0137, allocations: 192 / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.01372, allocations: 8.375 kB / 278.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.01373, allocations: 3.938 kB / 278.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.01393, allocations: 71.95 kB / 278.7 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007476/0.01468, allocations: 412.1 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.01503, allocations: 134.7 kB / 279.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.01517, allocations: 48.83 kB / 279.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.01519, allocations: 4 kB / 279.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.01545, allocations: 122 kB / 279.4 MB, free: 10.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.01545, allocations: 0 / 279.4 MB, free: 10.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005673/0.01601, allocations: 229.3 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.01607, allocations: 59.41 kB / 279.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006196/0.01669, allocations: 461.5 kB / 280.1 MB, free: 9.648 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.01673, allocations: 33.7 kB / 280.2 MB, free: 9.609 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.0169, allocations: 172 kB / 280.3 MB, free: 9.438 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.884e-05/0.01695, allocations: 39.69 kB / 280.4 MB, free: 9.398 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.427e-05/0.01702, allocations: 41.7 kB / 280.4 MB, free: 9.352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.01725, allocations: 354.7 kB / 280.8 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.01737, allocations: 47.97 kB / 280.8 MB, free: 8.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.01757, allocations: 139.7 kB / 281 MB, free: 8.785 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.01781, allocations: 121.5 kB / 281.1 MB, free: 8.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.01781, allocations: 0 / 281.1 MB, free: 8.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003963/0.01821, allocations: 193.3 kB / 281.3 MB, free: 8.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.01823, allocations: 4 kB / 281.3 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.01823, allocations: 0 / 281.3 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.01825, allocations: 4 kB / 281.3 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.01838, allocations: 23.92 kB / 281.3 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.01839, allocations: 4 kB / 281.3 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.0185, allocations: 23.98 kB / 281.3 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.01852, allocations: 11.88 kB / 281.3 MB, free: 8.395 MB / 266.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.000198/0.01872, allocations: 171.8 kB / 281.5 MB, free: 8.219 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.363e-05/0.01878, allocations: 35.81 kB / 281.5 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004585/0.01924, allocations: 200.5 kB / 281.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.01924, allocations: 0 / 281.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.01925, allocations: 0 / 281.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.01925, allocations: 0 / 281.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003027/0.01955, allocations: 233.1 kB / 282 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.01955, allocations: 0 / 282 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.482e-05/0.01961, allocations: 15.98 kB / 282 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.01961, allocations: 0 / 282 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.01963, allocations: 4 kB / 282 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.01963, allocations: 8 kB / 282 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01963, allocations: 0 / 282 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.02007, allocations: 235.7 kB / 282.2 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.323e-05/0.02013, allocations: 31.75 kB / 282.2 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.02017, allocations: 8 kB / 282.3 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.804e-05/0.02026, allocations: 11.98 kB / 282.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.114e-05/0.02033, allocations: 15.97 kB / 282.3 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.02036, allocations: 8 kB / 282.3 MB, free: 7.379 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004459/0.0208, allocations: 335.1 kB / 282.6 MB, free: 7.051 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0208, allocations: 0 / 282.6 MB, free: 7.051 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000317/0.02112, allocations: 51.92 kB / 282.7 MB, free: 7 MB / 266.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.001978/0.0231, allocations: 436.8 kB / 283.1 MB, free: 6.715 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.02345, allocations: 134.8 kB / 283.2 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.02346, allocations: 0 / 283.2 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.0236, allocations: 59.97 kB / 283.3 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.0241, allocations: 100.1 kB / 283.4 MB, free: 6.434 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.02514, allocations: 0.5219 MB / 283.9 MB, free: 5.879 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.02535, allocations: 174.3 kB / 284.1 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001234/0.02547, allocations: 42.25 kB / 284.1 MB, free: 5.648 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.46e-05/0.02557, allocations: 40.48 kB / 284.2 MB, free: 5.609 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.02557, allocations: 0 / 284.2 MB, free: 5.609 MB / 266.7 MB Notification: Performance of Templates: time 0.01039/0.03596, allocations: 4.031 MB / 288.2 MB, free: 1.617 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.95241596410051]