Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001271/0.001271, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001409/0.001409, allocations: 211.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.4/1.4, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 47.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2654, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003529/0.2689, allocations: 1.976 MB / 433 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.2711, allocations: 1.22 MB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2712, allocations: 11.88 kB / 434.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008878/0.2721, allocations: 311.1 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005731/0.2726, allocations: 267.1 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.2732, allocations: 234.4 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004109/0.2736, allocations: 359.1 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.2737, allocations: 48.72 kB / 435.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.2739, allocations: 147.4 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.2741, allocations: 167.3 kB / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.2742, allocations: 16 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.2743, allocations: 91.94 kB / 435.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.2745, allocations: 87.62 kB / 436 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.2746, allocations: 99.39 kB / 436.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.275, allocations: 368.3 kB / 436.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.275, allocations: 0 / 436.4 MB, free: 1.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.531e-06/0.275, allocations: 3.984 kB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.275, allocations: 4 kB / 436.4 MB, free: 1.273 MB / 334.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.0009758/0.276, allocations: 0.6049 MB / 437 MB, free: 0.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.2761, allocations: 12.03 kB / 437 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.327e-05/0.2761, allocations: 46.73 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.2762, allocations: 36.7 kB / 437.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.2766, allocations: 264.9 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.2766, allocations: 16.31 kB / 437.4 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.2767, allocations: 11.94 kB / 437.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.2769, allocations: 123.2 kB / 437.5 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.2769, allocations: 0 / 437.5 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.277, allocations: 4 kB / 437.5 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.277, allocations: 4 kB / 437.5 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.2771, allocations: 79.81 kB / 437.6 MB, free: 0 / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007084/0.2778, allocations: 439.5 kB / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/0.2782, allocations: 134.6 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.2783, allocations: 52.83 kB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.2783, allocations: 3.984 kB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.2786, allocations: 115.3 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2786, allocations: 0 / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005223/0.2791, allocations: 232.2 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.2791, allocations: 51.41 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005614/0.2797, allocations: 465.6 kB / 439.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.2797, allocations: 29.7 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.2799, allocations: 179.9 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.2799, allocations: 47.62 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-05/0.28, allocations: 41.7 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.2801, allocations: 346.8 kB / 439.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.2803, allocations: 43.98 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.2804, allocations: 150.2 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.2807, allocations: 110.5 kB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2807, allocations: 4 kB / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003366/0.281, allocations: 185.3 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.281, allocations: 11.94 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.281, allocations: 0 / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.281, allocations: 0 / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.2812, allocations: 27.92 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.2812, allocations: 0 / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.2813, allocations: 15.95 kB / 440.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.2813, allocations: 7.984 kB / 440.3 MB, free: 13.2 MB / 350.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.0001682/0.2814, allocations: 171.6 kB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.845e-05/0.2815, allocations: 31.75 kB / 440.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004055/0.2819, allocations: 204.4 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2819, allocations: 4 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2819, allocations: 3.984 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2819, allocations: 0 / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002718/0.2822, allocations: 256.5 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2822, allocations: 0 / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/0.2822, allocations: 16 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2822, allocations: 3.938 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2823, allocations: 4 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2823, allocations: 7.938 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2823, allocations: 0 / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003709/0.2826, allocations: 227.6 kB / 441.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.769e-05/0.2827, allocations: 35.69 kB / 441.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/0.2827, allocations: 15.98 kB / 441.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.2828, allocations: 4 kB / 441.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.2829, allocations: 15.97 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.2829, allocations: 8 kB / 441.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003798/0.2833, allocations: 339.1 kB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2833, allocations: 0 / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.2836, allocations: 51.92 kB / 441.6 MB, free: 11.77 MB / 350.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,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.002146/0.2857, allocations: 1.107 MB / 442.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003132/0.286, allocations: 123.8 kB / 442.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.286, allocations: 4 kB / 442.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.2862, allocations: 60.05 kB / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.2866, allocations: 84.94 kB / 443 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003709/0.2903, allocations: 2.895 MB / 445.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.2905, allocations: 178.1 kB / 446.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.2906, allocations: 38.27 kB / 446.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.2908, allocations: 103.4 kB / 446.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2908, allocations: 8 kB / 446.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03715/0.3279, allocations: 8.191 MB / 454.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.04, allocations: 15 kB / 454.4 MB, free: 15.11 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 13.47050728899194]