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.0008192/0.0008192, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000854/0.000854, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8668/0.8668, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.323e-06/1.323e-06, allocations: 0 / 324.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.372e-05/1.504e-05, allocations: 3.125 kB / 324.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002327/0.002342, allocations: 1.978 MB / 326.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.003906, allocations: 1.238 MB / 327.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.00401, allocations: 0 / 327.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007313/0.004741, allocations: 318.9 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005199/0.005261, allocations: 263 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.005588, allocations: 226.7 kB / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.005894, allocations: 370.9 kB / 328.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.006034, allocations: 40.91 kB / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.006306, allocations: 187.5 kB / 329.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.006455, allocations: 143.6 kB / 329.2 MB, free: 11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.809e-05/0.006483, allocations: 20 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.006617, allocations: 95.78 kB / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.254e-05/0.006699, allocations: 83.7 kB / 329.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.017e-05/0.006779, allocations: 75.7 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.007126, allocations: 374.8 kB / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.007129, allocations: 3.984 kB / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.00713, allocations: 0 / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.007135, allocations: 0 / 329.9 MB, free: 10.36 MB / 298.7 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.0007712/0.007907, allocations: 0.5932 MB / 330.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.007951, allocations: 15.98 kB / 330.5 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.286e-05/0.007994, allocations: 46.73 kB / 330.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.576e-05/0.00805, allocations: 36.7 kB / 330.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.008568, allocations: 276.1 kB / 330.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.008587, allocations: 12.38 kB / 330.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.008602, allocations: 8.375 kB / 330.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.008787, allocations: 119 kB / 331 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.008795, allocations: 192 / 331 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.008809, allocations: 16.06 kB / 331 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.008815, allocations: 4 kB / 331 MB, free: 9.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.008923, allocations: 75.95 kB / 331.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004754/0.009399, allocations: 443.4 kB / 331.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.009593, allocations: 126.7 kB / 331.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.248e-05/0.009655, allocations: 52.83 kB / 331.7 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.009671, allocations: 3.938 kB / 331.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000161/0.009832, allocations: 119.3 kB / 331.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.009833, allocations: 0 / 331.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003257/0.01016, allocations: 225.3 kB / 332 MB, free: 8.062 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.01019, allocations: 51.41 kB / 332.1 MB, free: 8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.0105, allocations: 469.5 kB / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.01051, allocations: 37.58 kB / 332.6 MB, free: 7.492 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.593e-05/0.0106, allocations: 172 kB / 332.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.01063, allocations: 43.69 kB / 332.8 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.01068, allocations: 41.7 kB / 332.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.01078, allocations: 346.8 kB / 333.2 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.423e-05/0.01085, allocations: 47.98 kB / 333.2 MB, free: 6.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.01095, allocations: 143.7 kB / 333.3 MB, free: 6.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.01107, allocations: 109.3 kB / 333.4 MB, free: 6.555 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01107, allocations: 0 / 333.4 MB, free: 6.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001826/0.01125, allocations: 185.3 kB / 333.6 MB, free: 6.367 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.01127, allocations: 8.094 kB / 333.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.01127, allocations: 4 kB / 333.6 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.01128, allocations: 0 / 333.6 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.305e-05/0.01136, allocations: 23.98 kB / 333.7 MB, free: 6.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.01136, allocations: 3.938 kB / 333.7 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.607e-05/0.01142, allocations: 19.89 kB / 333.7 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.01143, allocations: 4 kB / 333.7 MB, free: 6.305 MB / 298.7 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.0001044/0.01153, allocations: 175.8 kB / 333.9 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.01156, allocations: 27.81 kB / 333.9 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/0.01179, allocations: 211.5 kB / 334.1 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.01179, allocations: 3.984 kB / 334.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.0118, allocations: 0 / 334.1 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.0118, allocations: 7.922 kB / 334.1 MB, free: 5.871 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004219/0.01223, allocations: 260.5 kB / 334.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.01223, allocations: 3.938 kB / 334.4 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.642e-05/0.01225, allocations: 12 kB / 334.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.01226, allocations: 0 / 334.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.01227, allocations: 8 kB / 334.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.01227, allocations: 0 / 334.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.01227, allocations: 8 kB / 334.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.01246, allocations: 224.7 kB / 334.6 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.01249, allocations: 23.81 kB / 334.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.01251, allocations: 8 kB / 334.6 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.068e-05/0.01255, allocations: 19.86 kB / 334.7 MB, free: 5.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.01261, allocations: 23.91 kB / 334.7 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.01262, allocations: 4 kB / 334.7 MB, free: 5.227 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002201/0.01284, allocations: 335.1 kB / 335 MB, free: 4.898 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01284, allocations: 0 / 335 MB, free: 4.898 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001782/0.01302, allocations: 59.86 kB / 335.1 MB, free: 4.84 MB / 298.7 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.0009739/0.01399, allocations: 1.084 MB / 336.2 MB, free: 3.879 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001846/0.01418, allocations: 127.4 kB / 336.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.01418, allocations: 0 / 336.3 MB, free: 3.758 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.352e-05/0.01425, allocations: 58.95 kB / 336.3 MB, free: 3.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.01448, allocations: 81.11 kB / 336.4 MB, free: 3.625 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.01668, allocations: 2.921 MB / 339.3 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.918e-05/0.01678, allocations: 182.1 kB / 339.5 MB, free: 416 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.165e-05/0.01685, allocations: 38.27 kB / 339.6 MB, free: 380 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.01695, allocations: 104.5 kB / 339.7 MB, free: 276 kB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.01695, allocations: 0 / 339.7 MB, free: 276 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.03547, allocations: 8.301 MB / 348 MB, free: 8.004 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.058/7.094, allocations: 6.578 kB / 348 MB, free: 8.004 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.7912657558918]