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.001683/0.001683, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001401/0.001401, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.42/1.42, 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.001517/0.001517, allocations: 51.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.251, allocations: 53.37 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003431/0.2544, allocations: 1.973 MB / 433 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00238/0.2568, allocations: 1.22 MB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.2569, allocations: 7.938 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009879/0.2579, allocations: 311.2 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006162/0.2585, allocations: 267 kB / 434.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006718/0.2592, allocations: 235 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.2597, allocations: 359.1 kB / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2598, allocations: 36.72 kB / 435.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.26, allocations: 155.4 kB / 435.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.2603, allocations: 155.3 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.13e-05/0.2603, allocations: 20 kB / 435.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.2606, allocations: 87.94 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.2607, allocations: 103.6 kB / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.2608, allocations: 91.41 kB / 436.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004854/0.2613, allocations: 364.3 kB / 436.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.2613, allocations: 4 kB / 436.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2613, allocations: 0 / 436.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.2613, allocations: 0 / 436.4 MB, free: 1.262 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.001104/0.2624, allocations: 0.6088 MB / 437 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2625, allocations: 8.031 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.219e-05/0.2625, allocations: 42.73 kB / 437.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.794e-05/0.2626, allocations: 40.7 kB / 437.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004761/0.2631, allocations: 272.8 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.2631, allocations: 8.375 kB / 437.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.2631, allocations: 15.94 kB / 437.4 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.2634, allocations: 121.6 kB / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2634, allocations: 0 / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.2634, allocations: 0 / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2634, allocations: 7.938 kB / 437.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002077/0.2636, allocations: 77.52 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000736/0.2644, allocations: 451.5 kB / 438 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.2647, allocations: 130.7 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.2648, allocations: 52.77 kB / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.2649, allocations: 0 / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.2651, allocations: 119.3 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.2651, allocations: 0 / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005248/0.2656, allocations: 229.3 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.2657, allocations: 55.41 kB / 438.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005402/0.2662, allocations: 461.6 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.2663, allocations: 29.7 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.2664, allocations: 179.9 kB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.2664, allocations: 39.69 kB / 439.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.2665, allocations: 45.7 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2667, allocations: 342.8 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2668, allocations: 43.98 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.267, allocations: 147.7 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.2672, allocations: 113.7 kB / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2672, allocations: 0 / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003389/0.2675, allocations: 185.3 kB / 440.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2676, allocations: 7.938 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2676, allocations: 4 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.2676, allocations: 0 / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.2677, allocations: 36.02 kB / 440.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.2677, allocations: 0 / 440.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.901e-05/0.2678, allocations: 15.94 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.2678, allocations: 8 kB / 440.2 MB, free: 13.19 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.0001857/0.268, allocations: 163.6 kB / 440.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.368e-05/0.2681, allocations: 35.75 kB / 440.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004264/0.2685, allocations: 204.4 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.2685, allocations: 7.984 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2685, allocations: 4 kB / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2685, allocations: 0 / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/0.2688, allocations: 260.5 kB / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2688, allocations: 0 / 440.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.046e-05/0.2689, allocations: 12 kB / 440.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.2689, allocations: 7.938 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2689, allocations: 0 / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2689, allocations: 3.984 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2689, allocations: 11.81 kB / 440.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.2693, allocations: 223.1 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.2693, allocations: 39.69 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.2694, allocations: 11.98 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.099e-05/0.2694, allocations: 4 kB / 441.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.2695, allocations: 15.97 kB / 441.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.2695, allocations: 4 kB / 441.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003844/0.2699, allocations: 339.1 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2699, allocations: 0 / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.2702, allocations: 51.92 kB / 441.6 MB, free: 11.75 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.002207/0.2724, allocations: 1.107 MB / 442.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.2727, allocations: 123.8 kB / 442.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2727, allocations: 4 kB / 442.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.2729, allocations: 63.91 kB / 442.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.2733, allocations: 76.2 kB / 443 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.277, allocations: 2.892 MB / 445.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.2771, allocations: 170.1 kB / 446 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.2773, allocations: 50.25 kB / 446.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.2774, allocations: 103.4 kB / 446.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2774, allocations: 0 / 446.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03795/0.3154, allocations: 8.165 MB / 454.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.3, allocations: 3.75 kB / 454.4 MB, free: 15.13 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.732096204999834]