Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00198/0.00198, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002022/0.002022, allocations: 208.6 kB / 24.49 MB, free: 4.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 55.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2887, allocations: 49.16 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00324/0.292, allocations: 2 MB / 398.3 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.2939, allocations: 1.084 MB / 399.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.294, allocations: 7.094 kB / 399.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009778/0.295, allocations: 315.8 kB / 399.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000482/0.2955, allocations: 202.9 kB / 399.9 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006941/0.2962, allocations: 274 kB / 400.2 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.2966, allocations: 332.5 kB / 400.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.2967, allocations: 47.62 kB / 400.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.2969, allocations: 154.9 kB / 400.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2972, allocations: 154 kB / 400.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.2972, allocations: 16.97 kB / 400.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.2974, allocations: 92.02 kB / 401 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.881e-05/0.2975, allocations: 92.62 kB / 401.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.2976, allocations: 117.7 kB / 401.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004148/0.298, allocations: 359.5 kB / 401.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.298, allocations: 0.5156 kB / 401.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.298, allocations: 0 / 401.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.298, allocations: 0 / 401.5 MB, free: 5.934 MB / 318.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.0008941/0.2989, allocations: 0.5986 MB / 402.1 MB, free: 5.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.299, allocations: 14.59 kB / 402.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.291e-05/0.299, allocations: 44.19 kB / 402.2 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.2991, allocations: 36.27 kB / 402.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.2995, allocations: 270.9 kB / 402.5 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.2995, allocations: 9.969 kB / 402.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.2995, allocations: 11.56 kB / 402.5 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.2998, allocations: 149.7 kB / 402.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.2998, allocations: 0 / 402.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.2998, allocations: 5.125 kB / 402.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2998, allocations: 7.5 kB / 402.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.3, allocations: 68.98 kB / 402.7 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006345/0.3006, allocations: 466 kB / 403.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.3009, allocations: 122.3 kB / 403.3 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.301, allocations: 55.06 kB / 403.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.3011, allocations: 6.516 kB / 403.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.3013, allocations: 122.1 kB / 403.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.3013, allocations: 0 / 403.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004655/0.3017, allocations: 209.5 kB / 403.7 MB, free: 4.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.3018, allocations: 109 kB / 403.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004967/0.3023, allocations: 434.1 kB / 404.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.3023, allocations: 33.05 kB / 404.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.96e-05/0.3024, allocations: 169.5 kB / 404.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.3024, allocations: 37.06 kB / 404.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.34e-05/0.3025, allocations: 46.5 kB / 404.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.375e-05/0.3026, allocations: 340.8 kB / 404.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.3027, allocations: 44.8 kB / 404.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.3028, allocations: 107.8 kB / 405 MB, free: 3.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.303, allocations: 102.7 kB / 405.1 MB, free: 3.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.303, allocations: 0 / 405.1 MB, free: 3.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002964/0.3033, allocations: 188.3 kB / 405.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3033, allocations: 9.812 kB / 405.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3033, allocations: 2.047 kB / 405.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.3034, allocations: 1.469 kB / 405.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3035, allocations: 25.2 kB / 405.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.3035, allocations: 1.844 kB / 405.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.3036, allocations: 17.28 kB / 405.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.3036, allocations: 5.781 kB / 405.3 MB, free: 3.242 MB / 318.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.0001436/0.3037, allocations: 175.9 kB / 405.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.3038, allocations: 33.25 kB / 405.5 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003714/0.3042, allocations: 187.6 kB / 405.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3042, allocations: 1.844 kB / 405.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3042, allocations: 1.312 kB / 405.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3042, allocations: 0.75 kB / 405.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/0.3044, allocations: 272 kB / 406 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3044, allocations: 4 kB / 406 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.356e-05/0.3045, allocations: 19.83 kB / 406 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3045, allocations: 5.875 kB / 406 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.3045, allocations: 2.797 kB / 406 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3045, allocations: 1.812 kB / 406 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3045, allocations: 3.938 kB / 406 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.3048, allocations: 194.5 kB / 406.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.3049, allocations: 39.11 kB / 406.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.3049, allocations: 6.969 kB / 406.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.305, allocations: 12.34 kB / 406.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/0.305, allocations: 15.53 kB / 406.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.3051, allocations: 5.078 kB / 406.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003117/0.3054, allocations: 310.6 kB / 406.6 MB, free: 2.453 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3054, allocations: 1.188 kB / 406.6 MB, free: 2.453 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.3057, allocations: 53.44 kB / 406.7 MB, free: 2.441 MB / 318.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 (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.001873/0.3076, allocations: 1.056 MB / 407.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003155/0.3079, allocations: 116.8 kB / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3079, allocations: 0 / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.308, allocations: 61.73 kB / 407.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.3084, allocations: 72.56 kB / 408 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.312, allocations: 2.816 MB / 410.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.3125, allocations: 0.7753 MB / 411.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.3127, allocations: 44.67 kB / 411.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.3128, allocations: 94.86 kB / 411.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3128, allocations: 0 / 411.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03838/0.3512, allocations: 7.433 MB / 419.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.81, allocations: 9.234 kB / 419.1 MB, free: 11.07 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.54524461994879]