Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001746/0.001746, allocations: 116.5 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002117/0.002117, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 63.84 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.105, allocations: 53.32 MB / 426.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003798/0.1088, allocations: 2.037 MB / 428.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.1111, allocations: 1.282 MB / 430 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.1113, allocations: 11.94 kB / 430 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009038/0.1122, allocations: 299.2 kB / 430.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006075/0.1128, allocations: 266.6 kB / 430.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005998/0.1134, allocations: 215.5 kB / 430.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.1139, allocations: 359 kB / 431.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.114, allocations: 48.72 kB / 431.1 MB, free: 484 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.1142, allocations: 147.3 kB / 431.3 MB, free: 336 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.1144, allocations: 163.4 kB / 431.5 MB, free: 172 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.613e-05/0.1145, allocations: 20 kB / 431.5 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001971/0.1147, allocations: 87.88 kB / 431.6 MB, free: 64 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2056/0.3203, allocations: 79.69 kB / 431.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.3206, allocations: 135.3 kB / 431.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006638/0.3212, allocations: 361.6 kB / 432.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3212, allocations: 0.5625 kB / 432.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3212, allocations: 1.156 kB / 432.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.3212, allocations: 0 / 432.1 MB, free: 8.051 MB / 350.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.00096/0.3222, allocations: 0.6864 MB / 432.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3222, allocations: 11.45 kB / 432.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.3223, allocations: 41.03 kB / 432.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.371e-05/0.3224, allocations: 41.12 kB / 432.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.3228, allocations: 338.8 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.3228, allocations: 9.453 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.3228, allocations: 9.047 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.3231, allocations: 154 kB / 433.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3231, allocations: 0 / 433.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.3231, allocations: 7.344 kB / 433.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.3231, allocations: 3.219 kB / 433.4 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.3233, allocations: 68.12 kB / 433.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.3239, allocations: 0.4935 MB / 434 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.3242, allocations: 119 kB / 434.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.441e-05/0.3243, allocations: 49.77 kB / 434.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.3243, allocations: 3.938 kB / 434.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.3245, allocations: 112.6 kB / 434.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.3245, allocations: 0 / 434.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004507/0.325, allocations: 229.4 kB / 434.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.325, allocations: 110 kB / 434.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.3254, allocations: 449 kB / 435 MB, free: 6.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.3254, allocations: 31.33 kB / 435 MB, free: 6.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.3255, allocations: 173.3 kB / 435.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.3256, allocations: 42.16 kB / 435.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.3256, allocations: 44.23 kB / 435.3 MB, free: 6.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.046e-05/0.3257, allocations: 343.4 kB / 435.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-05/0.3258, allocations: 46.7 kB / 435.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3259, allocations: 107.1 kB / 435.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.3261, allocations: 101.9 kB / 435.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3261, allocations: 4.531 kB / 435.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002851/0.3264, allocations: 184.5 kB / 436.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3264, allocations: 7.5 kB / 436.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3264, allocations: 1.281 kB / 436.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3264, allocations: 5.281 kB / 436.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.3265, allocations: 22.53 kB / 436.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.3265, allocations: 3.938 kB / 436.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.473e-05/0.3266, allocations: 20.02 kB / 436.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.3266, allocations: 8.125 kB / 436.1 MB, free: 5.852 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.0001282/0.3268, allocations: 169.5 kB / 436.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.3268, allocations: 31.95 kB / 436.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.755e-05/0.3269, allocations: 38.92 kB / 436.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.3269, allocations: 6.375 kB / 436.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3269, allocations: 2 kB / 436.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3269, allocations: 2.859 kB / 436.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.3271, allocations: 308.9 kB / 436.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3271, allocations: 0 / 436.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.56e-05/0.3271, allocations: 8.578 kB / 436.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3271, allocations: 4.062 kB / 436.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.3271, allocations: 6.125 kB / 436.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.3272, allocations: 10.09 kB / 436.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.3272, allocations: 0 / 436.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.3274, allocations: 206.9 kB / 436.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.046e-05/0.3275, allocations: 103.9 kB / 437 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/0.3275, allocations: 7 kB / 437 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.858e-05/0.3276, allocations: 17.05 kB / 437 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.3277, allocations: 13.78 kB / 437.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.3277, allocations: 5.172 kB / 437.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003203/0.328, allocations: 338.1 kB / 437.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.328, allocations: 0 / 437.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000295/0.3283, allocations: 55.41 kB / 437.4 MB, free: 5.215 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,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.001853/0.3302, allocations: 1.059 MB / 438.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003296/0.3305, allocations: 117.3 kB / 438.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3305, allocations: 3.938 kB / 438.6 MB, free: 4.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.3306, allocations: 56.08 kB / 438.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.3311, allocations: 85.23 kB / 438.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.3342, allocations: 2.87 MB / 441.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3344, allocations: 0.7781 MB / 442.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000148/0.3346, allocations: 41.83 kB / 442.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.3347, allocations: 95.88 kB / 442.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3347, allocations: 0 / 442.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.367, allocations: 7.386 MB / 449.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.312/8.679, allocations: 5.531 kB / 449.9 MB, free: 1.285 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 11.238346788100898]