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.0008456/0.0008456, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003449/0.003449, allocations: 152.9 kB / 24.69 MB, free: 8.918 MB / 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 0.8392/0.8392, allocations: 177 MB / 204.9 MB, free: 5.773 MB / 186.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.182e-06/1.182e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.657e-05/1.775e-05, allocations: 6.219 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002149/0.002167, allocations: 1.98 MB / 327.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.003506, allocations: 1.228 MB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.614e-05/0.003592, allocations: 4 kB / 329 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005789/0.004171, allocations: 315 kB / 329.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.004492, allocations: 258.6 kB / 329.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.004778, allocations: 231.3 kB / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000269/0.005047, allocations: 367 kB / 330.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.716e-05/0.005144, allocations: 36.92 kB / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.005299, allocations: 199.4 kB / 330.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.005426, allocations: 139.6 kB / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.005449, allocations: 24 kB / 330.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.005566, allocations: 87.81 kB / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.379e-05/0.00564, allocations: 95.67 kB / 330.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.339e-05/0.005704, allocations: 75.7 kB / 330.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.006003, allocations: 358.8 kB / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.006004, allocations: 0 / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006005, allocations: 4 kB / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.006009, allocations: 0 / 331.1 MB, free: 10.05 MB / 298.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.0005733/0.006582, allocations: 0.5971 MB / 331.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.006612, allocations: 15.98 kB / 331.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.887e-05/0.006661, allocations: 36.7 kB / 331.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.006949, allocations: 291.9 kB / 332 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.006965, allocations: 12.38 kB / 332.1 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.006981, allocations: 8.375 kB / 332.1 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.007148, allocations: 119 kB / 332.2 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.007156, allocations: 4.188 kB / 332.2 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.007169, allocations: 4.359 kB / 332.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.007176, allocations: 7.938 kB / 332.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.007281, allocations: 75.95 kB / 332.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.007724, allocations: 416 kB / 332.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.007913, allocations: 130.7 kB / 332.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.244e-05/0.007975, allocations: 48.83 kB / 332.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.007987, allocations: 0 / 332.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.008129, allocations: 119.3 kB / 333 MB, free: 8.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 9.22e-07/0.00813, allocations: 0 / 333 MB, free: 8.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.000293/0.008423, allocations: 230.7 kB / 333.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.008453, allocations: 55.39 kB / 333.3 MB, free: 7.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.008775, allocations: 457.6 kB / 333.7 MB, free: 7.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.008791, allocations: 29.7 kB / 333.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.607e-05/0.008877, allocations: 172 kB / 333.9 MB, free: 7.105 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.026e-05/0.008917, allocations: 43.67 kB / 333.9 MB, free: 7.062 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.434e-05/0.008961, allocations: 45.7 kB / 334 MB, free: 7.012 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.486e-05/0.009046, allocations: 346.7 kB / 334.3 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.306e-05/0.009109, allocations: 43.98 kB / 334.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.009211, allocations: 154.7 kB / 334.5 MB, free: 6.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.00933, allocations: 108.5 kB / 334.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.009332, allocations: 0 / 334.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001821/0.009514, allocations: 187.8 kB / 334.8 MB, free: 6.145 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.009525, allocations: 4 kB / 334.8 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.009529, allocations: 7.938 kB / 334.8 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.015e-06/0.009537, allocations: 3.938 kB / 334.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.799e-05/0.009605, allocations: 36.02 kB / 334.9 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.009609, allocations: 0 / 334.9 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.31e-05/0.009662, allocations: 19.88 kB / 334.9 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.009672, allocations: 11.94 kB / 334.9 MB, free: 6.062 MB / 298.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.0001048/0.009777, allocations: 163.8 kB / 335 MB, free: 5.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.009803, allocations: 31.81 kB / 335.1 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.01003, allocations: 211.8 kB / 335.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.01003, allocations: 4 kB / 335.3 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.01004, allocations: 4 kB / 335.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.01004, allocations: 0 / 335.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.01018, allocations: 229.1 kB / 335.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01018, allocations: 4 kB / 335.5 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.448e-05/0.01021, allocations: 11.94 kB / 335.5 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.01021, allocations: 3.984 kB / 335.5 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.01022, allocations: 4 kB / 335.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.01022, allocations: 0 / 335.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.01022, allocations: 0 / 335.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001887/0.01041, allocations: 220.7 kB / 335.8 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-05/0.01044, allocations: 43.73 kB / 335.8 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.01046, allocations: 4 kB / 335.8 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.839e-05/0.0105, allocations: 7.984 kB / 335.8 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.01054, allocations: 19.97 kB / 335.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.01055, allocations: 7.984 kB / 335.8 MB, free: 5.047 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002277/0.01078, allocations: 339.1 kB / 336.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01078, allocations: 0 / 336.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001722/0.01095, allocations: 47.94 kB / 336.2 MB, free: 4.668 MB / 298.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.0006402/0.01159, allocations: 455.5 kB / 336.7 MB, free: 4.367 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.01177, allocations: 123.8 kB / 336.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.01178, allocations: 0 / 336.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.677e-05/0.01185, allocations: 63.83 kB / 336.8 MB, free: 4.184 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.01208, allocations: 73.23 kB / 336.9 MB, free: 4.113 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005202/0.0126, allocations: 0.5412 MB / 337.5 MB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.0127, allocations: 178.3 kB / 337.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.662e-05/0.01275, allocations: 28.5 kB / 337.7 MB, free: 3.32 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01275, allocations: 0 / 337.7 MB, free: 3.32 MB / 298.7 MB Notification: Performance of Templates: time 0.004206/0.01696, allocations: 4.426 MB / 342.1 MB, free: 14.9 MB / 314.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.515000130049884]