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.001343/0.001343, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002297/0.002297, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 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.591/1.591, allocations: 230.3 MB / 258 MB, free: 8.219 MB / 206.1 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 0.001964/0.001964, allocations: 59.89 kB / 378.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3117, allocations: 53.36 MB / 432.1 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003966/0.3157, allocations: 2.059 MB / 434.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.3183, allocations: 1.308 MB / 435.5 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.3185, allocations: 3.938 kB / 435.5 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.3196, allocations: 322.6 kB / 435.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006369/0.3202, allocations: 255.1 kB / 436 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.3208, allocations: 231 kB / 436.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005018/0.3213, allocations: 363.1 kB / 436.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.3215, allocations: 36.92 kB / 436.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.3218, allocations: 155.4 kB / 436.8 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.322, allocations: 163.3 kB / 437 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.492e-05/0.322, allocations: 20 kB / 437 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002341/0.3223, allocations: 95.86 kB / 437.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.3224, allocations: 91.69 kB / 437.2 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.3226, allocations: 127.2 kB / 437.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.3231, allocations: 364.1 kB / 437.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.3231, allocations: 3.938 kB / 437.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3231, allocations: 0 / 437.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.3231, allocations: 0 / 437.7 MB, free: 1.527 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.001326/0.3245, allocations: 0.6089 MB / 438.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.3245, allocations: 8.031 kB / 438.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.3246, allocations: 36.7 kB / 438.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/0.3252, allocations: 280.8 kB / 438.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.3252, allocations: 8.375 kB / 438.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.3253, allocations: 12.38 kB / 438.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.3257, allocations: 159.3 kB / 438.8 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3257, allocations: 0 / 438.8 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.3257, allocations: 4 kB / 438.8 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3257, allocations: 4 kB / 438.8 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.3259, allocations: 71.95 kB / 438.8 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008743/0.3268, allocations: 467.5 kB / 439.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.3271, allocations: 134.7 kB / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.3272, allocations: 44.84 kB / 439.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.3272, allocations: 0 / 439.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.3275, allocations: 119.3 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.3275, allocations: 0 / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005327/0.328, allocations: 213.3 kB / 439.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.3281, allocations: 114.7 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005638/0.3287, allocations: 457.6 kB / 440.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.3287, allocations: 33.62 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.3289, allocations: 176 kB / 440.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.573e-05/0.3289, allocations: 39.69 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.56e-05/0.329, allocations: 45.7 kB / 440.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.3292, allocations: 346.8 kB / 441 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3293, allocations: 39.98 kB / 441 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.3295, allocations: 100.7 kB / 441.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.3297, allocations: 113.7 kB / 441.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3297, allocations: 0 / 441.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003662/0.3301, allocations: 181.3 kB / 441.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3301, allocations: 4 kB / 441.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3301, allocations: 4 kB / 441.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.3302, allocations: 3.938 kB / 441.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.3303, allocations: 32.05 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3303, allocations: 3.938 kB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.3304, allocations: 15.89 kB / 441.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3304, allocations: 8 kB / 441.5 MB, free: 13.46 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.0002048/0.3306, allocations: 167.5 kB / 441.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.3307, allocations: 31.81 kB / 441.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004185/0.3311, allocations: 192.5 kB / 441.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3311, allocations: 3.938 kB / 441.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3311, allocations: 0 / 441.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3311, allocations: 0 / 441.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003255/0.3315, allocations: 284.5 kB / 442.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3315, allocations: 0 / 442.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.534e-05/0.3315, allocations: 15.98 kB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3315, allocations: 0 / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3315, allocations: 0 / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.3315, allocations: 7.938 kB / 442.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3315, allocations: 0 / 442.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.3319, allocations: 208.3 kB / 442.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/0.332, allocations: 39.69 kB / 442.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.332, allocations: 4 kB / 442.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.528e-05/0.3321, allocations: 11.94 kB / 442.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.88e-05/0.3322, allocations: 15.97 kB / 442.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.3322, allocations: 4 kB / 442.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004159/0.3326, allocations: 335.1 kB / 442.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3326, allocations: 0 / 442.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.3329, allocations: 55.92 kB / 442.8 MB, free: 12.04 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.001569/0.3345, allocations: 433.8 kB / 443.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003257/0.3348, allocations: 107.9 kB / 443.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3348, allocations: 0 / 443.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.3349, allocations: 56.05 kB / 443.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.3354, allocations: 80.81 kB / 443.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009208/0.3363, allocations: 0.5038 MB / 444 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/0.3368, allocations: 0.7831 MB / 444.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.337, allocations: 38.27 kB / 444.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.152e-05/0.337, allocations: 27.44 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.337, allocations: 0 / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of Templates: time 0.009072/0.3461, allocations: 3.991 MB / 448.8 MB, free: 6.133 MB / 350.1 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.947175123728812]