Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 107.1 kB / 17.74 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 188.2 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.291/2.291, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 47.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3943, allocations: 49.45 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.006601/0.401, allocations: 2.008 MB / 403.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003841/0.4049, allocations: 1.13 MB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.4052, allocations: 8 kB / 404.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.4068, allocations: 299.1 kB / 404.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009667/0.4078, allocations: 211.3 kB / 405 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.4093, allocations: 284.8 kB / 405.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007574/0.41, allocations: 351.1 kB / 405.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.4103, allocations: 52.39 kB / 405.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004237/0.4108, allocations: 139.5 kB / 405.9 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004004/0.4112, allocations: 147.4 kB / 406 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.4113, allocations: 20 kB / 406 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00035/0.4117, allocations: 83.88 kB / 406.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000193/0.4119, allocations: 87.75 kB / 406.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.4122, allocations: 131.1 kB / 406.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007798/0.413, allocations: 347.9 kB / 406.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.413, allocations: 3.984 kB / 406.7 MB, free: 3.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.413, allocations: 4 kB / 406.7 MB, free: 3.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.4131, allocations: 0 / 406.7 MB, free: 3.598 MB / 318.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.001741/0.4148, allocations: 0.6455 MB / 407.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.4149, allocations: 12.03 kB / 407.3 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.415, allocations: 36.56 kB / 407.4 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000806/0.4159, allocations: 327.7 kB / 407.7 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.4159, allocations: 11.98 kB / 407.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.416, allocations: 15.94 kB / 407.7 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004892/0.4165, allocations: 140.2 kB / 407.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.4165, allocations: 7.969 kB / 407.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.4166, allocations: 4 kB / 407.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.4166, allocations: 8 kB / 407.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.4169, allocations: 67.91 kB / 407.9 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.4182, allocations: 0.4922 MB / 408.4 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000589/0.4188, allocations: 130.8 kB / 408.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000207/0.419, allocations: 48.84 kB / 408.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.4191, allocations: 7.938 kB / 408.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004073/0.4195, allocations: 111.3 kB / 408.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 3.236e-06/0.4195, allocations: 0 / 408.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008958/0.4204, allocations: 217.2 kB / 408.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.976e-05/0.4205, allocations: 102.8 kB / 409 MB, free: 1.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008672/0.4214, allocations: 436.4 kB / 409.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.4215, allocations: 29.7 kB / 409.5 MB, free: 0.543 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.4217, allocations: 168 kB / 409.6 MB, free: 384 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.4218, allocations: 35.45 kB / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.4219, allocations: 41.7 kB / 409.7 MB, free: 300 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002376/0.4222, allocations: 342.8 kB / 410 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.4224, allocations: 59.86 kB / 410.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.4227, allocations: 97.98 kB / 410.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.4231, allocations: 113.8 kB / 410.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.4231, allocations: 3.938 kB / 410.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006432/0.4238, allocations: 173.1 kB / 410.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.4239, allocations: 7.984 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.4239, allocations: 0 / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.4239, allocations: 4 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.4241, allocations: 23.98 kB / 410.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.4242, allocations: 4 kB / 410.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.4244, allocations: 12 kB / 410.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.4244, allocations: 12 kB / 410.5 MB, free: 15.41 MB / 334.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.0002853/0.4247, allocations: 167.5 kB / 410.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.866e-05/0.4249, allocations: 31.56 kB / 410.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.425, allocations: 42.88 kB / 410.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.425, allocations: 0 / 410.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.425, allocations: 0 / 410.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4251, allocations: 0 / 410.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004811/0.4255, allocations: 305.3 kB / 411.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4256, allocations: 4 kB / 411.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.533e-05/0.4257, allocations: 11.98 kB / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.4257, allocations: 0 / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.4257, allocations: 4 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.4258, allocations: 3.984 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.4258, allocations: 3.938 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.4264, allocations: 204.6 kB / 411.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.4266, allocations: 112.8 kB / 411.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.143e-05/0.4267, allocations: 3.984 kB / 411.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.4268, allocations: 12 kB / 411.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.427, allocations: 15.92 kB / 411.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.93e-05/0.427, allocations: 7.984 kB / 411.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006635/0.4277, allocations: 315 kB / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4277, allocations: 0 / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005684/0.4283, allocations: 55.89 kB / 411.8 MB, free: 14.03 MB / 334.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * 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.001864/0.4302, allocations: 437.5 kB / 412.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.4308, allocations: 123.2 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4308, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002433/0.4311, allocations: 55.98 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008014/0.4319, allocations: 78.81 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.4334, allocations: 0.5178 MB / 413 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.434, allocations: 0.7751 MB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.4341, allocations: 23.44 kB / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4341, allocations: 0 / 413.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Templates: time 0.01046/0.4446, allocations: 4.208 MB / 418 MB, free: 7.945 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches