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.001366/0.001366, allocations: 98.48 kB / 17.06 MB, free: 6.121 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.001464/0.001464, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.001029, allocations: 47.91 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3321, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003486/0.3356, allocations: 2.018 MB / 402.7 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.3376, allocations: 1.126 MB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.3377, allocations: 7.938 kB / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000798/0.3385, allocations: 303.2 kB / 404.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.339, allocations: 210.1 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.3397, allocations: 287.3 kB / 404.6 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004608/0.3402, allocations: 347.1 kB / 405 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.3404, allocations: 56.38 kB / 405 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/0.3406, allocations: 147.4 kB / 405.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.3408, allocations: 143.4 kB / 405.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.314e-05/0.3408, allocations: 20 kB / 405.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.341, allocations: 75.91 kB / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.3412, allocations: 91.72 kB / 405.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.3413, allocations: 127.2 kB / 405.6 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004748/0.3418, allocations: 348 kB / 406 MB, free: 3.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3418, allocations: 4 kB / 406 MB, free: 3.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3418, allocations: 0 / 406 MB, free: 3.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.3419, allocations: 0 / 406 MB, free: 3.594 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.001251/0.3431, allocations: 0.6572 MB / 406.6 MB, free: 2.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3432, allocations: 8.031 kB / 406.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.633e-05/0.3433, allocations: 32.56 kB / 406.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.3438, allocations: 335.7 kB / 407 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.3439, allocations: 8 kB / 407 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.3439, allocations: 15.94 kB / 407 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.3443, allocations: 144.2 kB / 407.2 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3443, allocations: 0 / 407.2 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.3443, allocations: 4 kB / 407.2 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.3443, allocations: 4 kB / 407.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.3445, allocations: 67.95 kB / 407.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006684/0.3452, allocations: 0.4884 MB / 407.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.3455, allocations: 134.7 kB / 407.9 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.3457, allocations: 48.84 kB / 407.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.3457, allocations: 11.92 kB / 407.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.346, allocations: 107.3 kB / 408 MB, free: 1.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.346, allocations: 0 / 408 MB, free: 1.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004744/0.3465, allocations: 213.2 kB / 408.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.3465, allocations: 110.8 kB / 408.3 MB, free: 1.004 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004291/0.347, allocations: 432.4 kB / 408.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.347, allocations: 37.64 kB / 408.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3471, allocations: 164 kB / 409 MB, free: 376 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.3472, allocations: 35.45 kB / 409 MB, free: 340 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/0.3472, allocations: 45.7 kB / 409 MB, free: 288 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3474, allocations: 342.8 kB / 409.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.3475, allocations: 47.94 kB / 409.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.3476, allocations: 109.9 kB / 409.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.3478, allocations: 105.4 kB / 409.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3479, allocations: 0 / 409.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002971/0.3482, allocations: 185.1 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.3482, allocations: 4 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3482, allocations: 0 / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.3482, allocations: 4 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.3483, allocations: 23.92 kB / 409.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3484, allocations: 4 kB / 409.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.335e-05/0.3485, allocations: 11.94 kB / 409.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.3485, allocations: 12.03 kB / 409.9 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.0001476/0.3486, allocations: 171.6 kB / 410 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.3487, allocations: 35.56 kB / 410.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.948e-05/0.3488, allocations: 38.88 kB / 410.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3488, allocations: 0 / 410.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3488, allocations: 3.984 kB / 410.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3488, allocations: 0 / 410.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.3491, allocations: 305.3 kB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3491, allocations: 0 / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.724e-05/0.3491, allocations: 8 kB / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3491, allocations: 0 / 410.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.3492, allocations: 8 kB / 410.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3492, allocations: 0 / 410.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3492, allocations: 0 / 410.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.3495, allocations: 211.5 kB / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.3496, allocations: 104.8 kB / 410.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.3496, allocations: 8 kB / 410.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.94e-05/0.3497, allocations: 11.98 kB / 410.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.196e-05/0.3498, allocations: 19.92 kB / 410.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.3498, allocations: 8 kB / 410.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.3501, allocations: 315 kB / 411.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3501, allocations: 0 / 411.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002757/0.3504, allocations: 51.91 kB / 411.1 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.0009302/0.3513, allocations: 427.1 kB / 411.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.3516, allocations: 127.3 kB / 411.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3517, allocations: 0 / 411.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.3518, allocations: 63.91 kB / 411.7 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.0003937/0.3522, allocations: 74.88 kB / 411.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007225/0.3529, allocations: 488.4 kB / 412.3 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.3533, allocations: 0.7792 MB / 413.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.3534, allocations: 50.23 kB / 413.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.429e-05/0.3535, allocations: 31.44 kB / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3535, allocations: 3.938 kB / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Templates: time 0.007564/0.361, allocations: 3.842 MB / 417 MB, free: 8.312 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