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.0008888/0.0008888, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001273/0.001273, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8949/0.8949, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 2.385e-06/2.385e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.471e-05/2.709e-05, allocations: 10.22 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00342/0.003447, allocations: 1.988 MB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.004963, allocations: 1.231 MB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.00507, allocations: 7.938 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006164/0.005686, allocations: 303.1 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003899/0.006076, allocations: 274.9 kB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.006511, allocations: 227.1 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000311/0.006822, allocations: 363 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.006939, allocations: 44.89 kB / 329 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.007109, allocations: 187.5 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.007239, allocations: 143.6 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.007263, allocations: 20 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.007396, allocations: 87.86 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.088e-05/0.007477, allocations: 91.69 kB / 329.5 MB, free: 11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.007679, allocations: 75.7 kB / 329.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003203/0.008, allocations: 362.8 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.008003, allocations: 4 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.008005, allocations: 0 / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.00801, allocations: 0 / 329.9 MB, free: 10.57 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.0007974/0.008807, allocations: 0.612 MB / 330.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.008843, allocations: 12.03 kB / 330.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.09e-05/0.008874, allocations: 42.73 kB / 330.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.862e-05/0.008923, allocations: 32.7 kB / 330.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.009216, allocations: 276.1 kB / 330.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.009233, allocations: 16.23 kB / 330.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.009248, allocations: 8.375 kB / 330.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.009419, allocations: 123 kB / 331 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.009427, allocations: 0 / 331 MB, free: 9.379 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.009439, allocations: 7.984 kB / 331 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.009445, allocations: 8 kB / 331 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.009553, allocations: 70.41 kB / 331.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.01001, allocations: 443.5 kB / 331.5 MB, free: 8.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.01021, allocations: 130.7 kB / 331.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.369e-05/0.01027, allocations: 44.84 kB / 331.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.01029, allocations: 0 / 331.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.01044, allocations: 131.2 kB / 331.8 MB, free: 8.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 9.61e-07/0.01044, allocations: 0 / 331.8 MB, free: 8.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003204/0.01076, allocations: 236 kB / 332.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.01079, allocations: 51.41 kB / 332.1 MB, free: 8.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.01111, allocations: 457.6 kB / 332.6 MB, free: 7.746 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.01113, allocations: 33.7 kB / 332.6 MB, free: 7.707 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.483e-05/0.01123, allocations: 175.9 kB / 332.8 MB, free: 7.531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.01126, allocations: 39.69 kB / 332.8 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.01131, allocations: 45.7 kB / 332.9 MB, free: 7.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.01142, allocations: 338.8 kB / 333.2 MB, free: 7.102 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.094e-05/0.01149, allocations: 51.97 kB / 333.2 MB, free: 7.051 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.0116, allocations: 143.7 kB / 333.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.01172, allocations: 110.4 kB / 333.5 MB, free: 6.766 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01173, allocations: 4 kB / 333.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001966/0.01192, allocations: 177.4 kB / 333.7 MB, free: 6.582 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.01194, allocations: 12.08 kB / 333.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01194, allocations: 7.984 kB / 333.7 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.01195, allocations: 3.938 kB / 333.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.01228, allocations: 31.92 kB / 333.7 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.01228, allocations: 0 / 333.7 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.69e-05/0.01234, allocations: 15.89 kB / 333.7 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.01235, allocations: 8 kB / 333.7 MB, free: 6.504 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.0001135/0.01246, allocations: 171.8 kB / 333.9 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.01249, allocations: 27.81 kB / 333.9 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.01272, allocations: 208.4 kB / 334.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.01273, allocations: 7.938 kB / 334.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.01273, allocations: 0 / 334.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.01273, allocations: 3.984 kB / 334.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.0129, allocations: 256.5 kB / 334.4 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.0129, allocations: 0 / 334.4 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.865e-05/0.01293, allocations: 15.98 kB / 334.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.01293, allocations: 0 / 334.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.01294, allocations: 0 / 334.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.01295, allocations: 7.938 kB / 334.4 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.01295, allocations: 4 kB / 334.4 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002003/0.01315, allocations: 227.3 kB / 334.7 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.131e-05/0.01318, allocations: 27.81 kB / 334.7 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.0132, allocations: 8 kB / 334.7 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.162e-05/0.01325, allocations: 11.92 kB / 334.7 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.01329, allocations: 15.97 kB / 334.7 MB, free: 5.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.01331, allocations: 8 kB / 334.7 MB, free: 5.445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002278/0.01354, allocations: 335.1 kB / 335 MB, free: 5.121 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01354, allocations: 3.938 kB / 335.1 MB, free: 5.117 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001954/0.01373, allocations: 51.88 kB / 335.1 MB, free: 5.066 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.001061/0.0148, allocations: 1.106 MB / 336.2 MB, free: 4.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.01501, allocations: 115.9 kB / 336.3 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.01502, allocations: 0 / 336.3 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.257e-05/0.0151, allocations: 66.72 kB / 336.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.01536, allocations: 87.67 kB / 336.5 MB, free: 3.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.01777, allocations: 2.93 MB / 339.4 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.01788, allocations: 174.1 kB / 339.6 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.898e-05/0.01797, allocations: 38.27 kB / 339.6 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.01808, allocations: 104.5 kB / 339.7 MB, free: 0.5 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01808, allocations: 0 / 339.7 MB, free: 0.5 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.04088, allocations: 8.307 MB / 348 MB, free: 8.266 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.877/6.918, allocations: 5.906 kB / 348 MB, free: 8.266 MB / 314.7 MB " [Timeout remaining time 653] (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/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_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: 8.629446430131793]