Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008887/0.0008887, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000811/0.000811, allocations: 160.4 kB / 25.45 MB, free: 9.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9147/0.9147, allocations: 158.6 MB / 187.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 299.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.809e-05/2.977e-05, allocations: 2.281 kB / 299.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002479/0.002509, allocations: 1.931 MB / 301.6 MB, free: 4.988 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.003682, allocations: 1.014 MB / 302.6 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.698e-05/0.003779, allocations: 3.938 kB / 302.6 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006461/0.004425, allocations: 318.9 kB / 302.9 MB, free: 3.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.004732, allocations: 215.2 kB / 303.2 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.005083, allocations: 271.2 kB / 303.4 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.005349, allocations: 339 kB / 303.7 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.005462, allocations: 36.55 kB / 303.8 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.005624, allocations: 191.5 kB / 304 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.005758, allocations: 143.6 kB / 304.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.005783, allocations: 16 kB / 304.1 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.005905, allocations: 83.88 kB / 304.2 MB, free: 2.383 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/0.005985, allocations: 91.67 kB / 304.3 MB, free: 2.293 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.573e-05/0.006051, allocations: 67.78 kB / 304.4 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.006367, allocations: 358.8 kB / 304.7 MB, free: 1.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.006369, allocations: 3.938 kB / 304.7 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.006371, allocations: 4 kB / 304.7 MB, free: 1.867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.006377, allocations: 0 / 304.7 MB, free: 1.867 MB / 282.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.0007054/0.007082, allocations: 0.5894 MB / 305.3 MB, free: 1.234 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.007119, allocations: 19.92 kB / 305.3 MB, free: 1.215 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.022e-05/0.007179, allocations: 36.7 kB / 305.4 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.007486, allocations: 269.7 kB / 305.6 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.007503, allocations: 4.375 kB / 305.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.00752, allocations: 12.38 kB / 305.6 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.007715, allocations: 126 kB / 305.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.007724, allocations: 3.938 kB / 305.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.007739, allocations: 7.984 kB / 305.8 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.007746, allocations: 4 kB / 305.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.007855, allocations: 75.95 kB / 305.9 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004634/0.008319, allocations: 400.1 kB / 306.2 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.008522, allocations: 130.8 kB / 306.4 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.502e-05/0.008587, allocations: 64.7 kB / 306.4 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.008602, allocations: 0 / 306.4 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.008773, allocations: 115.3 kB / 306.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 8.81e-07/0.008774, allocations: 4 kB / 306.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003259/0.009099, allocations: 221 kB / 306.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.009131, allocations: 59.34 kB / 306.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.009443, allocations: 440.4 kB / 307.3 MB, free: 15.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.009459, allocations: 29.7 kB / 307.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.434e-05/0.009554, allocations: 168 kB / 307.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.009587, allocations: 43.62 kB / 307.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.009632, allocations: 41.7 kB / 307.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.009739, allocations: 346.8 kB / 307.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.661e-05/0.009805, allocations: 47.98 kB / 307.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.009911, allocations: 143.7 kB / 308.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.01004, allocations: 110.5 kB / 308.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.01004, allocations: 0 / 308.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001909/0.01023, allocations: 181.3 kB / 308.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.01024, allocations: 8 kB / 308.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.01025, allocations: 0 / 308.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.01026, allocations: 4.094 kB / 308.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-05/0.01033, allocations: 27.98 kB / 308.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.01034, allocations: 3.938 kB / 308.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.926e-05/0.0104, allocations: 15.89 kB / 308.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.01041, allocations: 8 kB / 308.4 MB, free: 13.95 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.000117/0.01053, allocations: 171.7 kB / 308.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.01055, allocations: 31.81 kB / 308.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002361/0.01079, allocations: 200.4 kB / 308.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.01079, allocations: 4 kB / 308.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01079, allocations: 3.938 kB / 308.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.0108, allocations: 11.92 kB / 308.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.01094, allocations: 217.1 kB / 309 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01095, allocations: 0 / 309 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.69e-05/0.01097, allocations: 11.98 kB / 309.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.01098, allocations: 4 kB / 309.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.01099, allocations: 4 kB / 309.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.01099, allocations: 4 kB / 309.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01099, allocations: 7.922 kB / 309.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.01121, allocations: 231.5 kB / 309.3 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-05/0.01124, allocations: 27.81 kB / 309.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.01126, allocations: 4 kB / 309.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.252e-05/0.0113, allocations: 11.98 kB / 309.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.222e-05/0.01135, allocations: 19.95 kB / 309.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.01137, allocations: 8 kB / 309.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000216/0.01159, allocations: 323 kB / 309.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01159, allocations: 0 / 309.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000181/0.01177, allocations: 51.89 kB / 309.7 MB, free: 12.57 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.000704/0.01247, allocations: 455.2 kB / 310.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.01267, allocations: 119.9 kB / 310.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.01267, allocations: 0 / 310.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.506e-05/0.01275, allocations: 63.83 kB / 310.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.01298, allocations: 69.38 kB / 310.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00057/0.01355, allocations: 0.5283 MB / 311 MB, free: 11.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.942e-05/0.01365, allocations: 169.9 kB / 311.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.993e-05/0.0137, allocations: 28.5 kB / 311.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.0137, allocations: 0 / 311.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of Templates: time 0.004289/0.01799, allocations: 4.302 MB / 315.4 MB, free: 6.789 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.448187323287129]