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.001131/0.001132, allocations: 115.7 kB / 17.74 MB, free: 5.309 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.001178/0.001178, allocations: 189.6 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 40.08 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2326, allocations: 49.45 MB / 401.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003581/0.2362, allocations: 1.992 MB / 403.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.2382, allocations: 1.134 MB / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.2384, allocations: 4 kB / 404.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008999/0.2394, allocations: 311.1 kB / 404.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005003/0.2399, allocations: 203.3 kB / 405 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.2406, allocations: 284.2 kB / 405.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.2411, allocations: 351.1 kB / 405.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.2412, allocations: 52.39 kB / 405.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000232/0.2415, allocations: 143.4 kB / 405.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.2417, allocations: 147.4 kB / 406 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.2417, allocations: 16 kB / 406 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.242, allocations: 87.94 kB / 406.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.2421, allocations: 83.69 kB / 406.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.2422, allocations: 127.2 kB / 406.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.2427, allocations: 355.9 kB / 406.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2427, allocations: 0 / 406.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2427, allocations: 0 / 406.6 MB, free: 3.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.2427, allocations: 0 / 406.6 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.001017/0.2437, allocations: 0.6519 MB / 407.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.2438, allocations: 12.03 kB / 407.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.539e-05/0.2439, allocations: 28.56 kB / 407.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004399/0.2443, allocations: 343.7 kB / 407.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.2443, allocations: 11.94 kB / 407.7 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.2444, allocations: 11.98 kB / 407.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.2447, allocations: 151.8 kB / 407.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2447, allocations: 0 / 407.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.2447, allocations: 4 kB / 407.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.2447, allocations: 4 kB / 407.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.2449, allocations: 71.89 kB / 407.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.2456, allocations: 0.4923 MB / 408.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/0.2459, allocations: 122.8 kB / 408.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.246, allocations: 60.77 kB / 408.6 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.2461, allocations: 7.938 kB / 408.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.2463, allocations: 107.3 kB / 408.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2463, allocations: 0 / 408.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005132/0.2468, allocations: 213.2 kB / 408.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.181e-05/0.2469, allocations: 106.8 kB / 409 MB, free: 1.004 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004938/0.2474, allocations: 436.4 kB / 409.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.2474, allocations: 33.69 kB / 409.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.2476, allocations: 160 kB / 409.6 MB, free: 380 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.2476, allocations: 43.45 kB / 409.7 MB, free: 336 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-05/0.2477, allocations: 41.7 kB / 409.7 MB, free: 288 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2479, allocations: 338.8 kB / 410 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.248, allocations: 51.92 kB / 410.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.2481, allocations: 106 kB / 410.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.2484, allocations: 101.7 kB / 410.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2484, allocations: 0 / 410.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000346/0.2487, allocations: 185.1 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.2488, allocations: 8 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2488, allocations: 0 / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2488, allocations: 0 / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.2489, allocations: 27.98 kB / 410.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2489, allocations: 0 / 410.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.2491, allocations: 19.92 kB / 410.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.2491, allocations: 7.938 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.0001671/0.2492, allocations: 175.6 kB / 410.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.2493, allocations: 35.5 kB / 410.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.543e-05/0.2494, allocations: 30.94 kB / 410.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2494, allocations: 4 kB / 410.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2494, allocations: 0 / 410.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2494, allocations: 0 / 410.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.2497, allocations: 301.3 kB / 411.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2497, allocations: 0 / 411.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.2497, allocations: 11.94 kB / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2498, allocations: 4 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.2498, allocations: 7.984 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2498, allocations: 4 kB / 411.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2498, allocations: 0 / 411.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.2501, allocations: 208.5 kB / 411.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.123e-05/0.2502, allocations: 96.83 kB / 411.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.2502, allocations: 4 kB / 411.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.2503, allocations: 11.98 kB / 411.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.2504, allocations: 19.92 kB / 411.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.2504, allocations: 7.984 kB / 411.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.2507, allocations: 315 kB / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2507, allocations: 0 / 411.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.251, allocations: 59.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.000912/0.252, allocations: 431 kB / 412.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.2523, allocations: 127.8 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2523, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.2524, allocations: 63.86 kB / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.2528, allocations: 83.61 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007637/0.2536, allocations: 0.5022 MB / 413 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.2539, allocations: 0.7792 MB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.868e-05/0.254, allocations: 35.42 kB / 413.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.254, allocations: 0 / 413.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of Templates: time 0.006953/0.261, allocations: 4.195 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