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.001525/0.001525, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001856/0.001856, allocations: 191 kB / 17.99 MB, free: 5.109 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.624/1.624, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 55.91 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3185, allocations: 49.43 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00397/0.3225, allocations: 2.012 MB / 402.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.3248, allocations: 1.134 MB / 403.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.325, allocations: 7.938 kB / 403.9 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.3261, allocations: 309.9 kB / 404.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004858/0.3266, allocations: 203.2 kB / 404.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007353/0.3273, allocations: 287.3 kB / 404.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003793/0.3277, allocations: 343.2 kB / 405 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.3279, allocations: 60.34 kB / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.3282, allocations: 147.5 kB / 405.2 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.3284, allocations: 139.4 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.91e-05/0.3285, allocations: 20 kB / 405.3 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.3287, allocations: 83.88 kB / 405.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.3288, allocations: 87.73 kB / 405.5 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.329, allocations: 123.2 kB / 405.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004853/0.3295, allocations: 351.9 kB / 406 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3295, allocations: 0 / 406 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3295, allocations: 0 / 406 MB, free: 3.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.3295, allocations: 0 / 406 MB, free: 3.629 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.001078/0.3306, allocations: 0.6611 MB / 406.6 MB, free: 2.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3307, allocations: 8.031 kB / 406.6 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.3308, allocations: 32.56 kB / 406.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.3312, allocations: 331.8 kB / 407 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.3313, allocations: 11.94 kB / 407 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.3313, allocations: 8 kB / 407 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.3317, allocations: 152.1 kB / 407.2 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3317, allocations: 0 / 407.2 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.3317, allocations: 8 kB / 407.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3317, allocations: 0 / 407.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.3319, allocations: 67.95 kB / 407.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007585/0.3326, allocations: 0.4884 MB / 407.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.333, allocations: 138.7 kB / 407.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.3331, allocations: 52.83 kB / 407.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.3332, allocations: 7.922 kB / 407.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.3334, allocations: 115.3 kB / 408 MB, free: 1.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 4.659e-06/0.3334, allocations: 4 kB / 408 MB, free: 1.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005489/0.334, allocations: 213.1 kB / 408.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.3341, allocations: 106.8 kB / 408.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004572/0.3346, allocations: 428.4 kB / 408.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.806e-05/0.3346, allocations: 33.7 kB / 408.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.3348, allocations: 167.9 kB / 409 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.986e-05/0.3348, allocations: 35.45 kB / 409 MB, free: 364 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.335, allocations: 53.69 kB / 409 MB, free: 304 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.3351, allocations: 342.8 kB / 409.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.3352, allocations: 43.92 kB / 409.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.3354, allocations: 101.9 kB / 409.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.3356, allocations: 109.9 kB / 409.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.3356, allocations: 0 / 409.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003124/0.3359, allocations: 181.1 kB / 409.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.336, allocations: 4 kB / 409.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.336, allocations: 0 / 409.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.336, allocations: 4 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.3361, allocations: 27.98 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3361, allocations: 4 kB / 409.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3363, allocations: 19.92 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.3363, allocations: 4 kB / 409.9 MB, free: 15.43 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.0001686/0.3364, allocations: 167.5 kB / 410 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.454e-05/0.3365, allocations: 35.56 kB / 410.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.568e-05/0.3366, allocations: 34.94 kB / 410.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3366, allocations: 7.938 kB / 410.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3366, allocations: 0 / 410.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3366, allocations: 0 / 410.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.3369, allocations: 305.3 kB / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3369, allocations: 0 / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.871e-05/0.3369, allocations: 8 kB / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3369, allocations: 0 / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.337, allocations: 7.984 kB / 410.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.337, allocations: 4 kB / 410.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.337, allocations: 0 / 410.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.3374, allocations: 212.5 kB / 410.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.552e-05/0.3375, allocations: 100.8 kB / 410.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.3375, allocations: 8 kB / 410.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.294e-05/0.3376, allocations: 7.984 kB / 410.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.3377, allocations: 15.92 kB / 410.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.3377, allocations: 8 kB / 410.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003872/0.3381, allocations: 315 kB / 411.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3381, allocations: 4 kB / 411.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.3384, allocations: 51.91 kB / 411.1 MB, free: 14.06 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.0009889/0.3394, allocations: 426.5 kB / 411.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.3397, allocations: 123.8 kB / 411.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3397, allocations: 0 / 411.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.3398, allocations: 59.92 kB / 411.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.3403, allocations: 86.36 kB / 411.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007812/0.3411, allocations: 484.5 kB / 412.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.3415, allocations: 0.7829 MB / 413.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.3416, allocations: 38.27 kB / 413.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.829e-05/0.3416, allocations: 35.42 kB / 413.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3417, allocations: 0 / 413.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Templates: time 0.007868/0.3495, allocations: 3.847 MB / 417 MB, free: 8.348 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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