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.001543/0.001543, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001475/0.001475, allocations: 212 kB / 24.47 MB, free: 3.547 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.391/1.391, allocations: 207.7 MB / 235.3 MB, free: 9.797 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.00179/0.00179, allocations: 57.64 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2791, allocations: 49.15 MB / 396.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002791/0.2819, allocations: 1.938 MB / 398.3 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.2833, allocations: 1.02 MB / 399.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.2834, allocations: 6.094 kB / 399.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000792/0.2842, allocations: 308.8 kB / 399.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.2846, allocations: 208.7 kB / 399.8 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005541/0.2851, allocations: 272 kB / 400.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.2855, allocations: 344.1 kB / 400.4 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.2856, allocations: 40 kB / 400.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.2857, allocations: 140 kB / 400.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.2859, allocations: 158.4 kB / 400.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.286, allocations: 18.84 kB / 400.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.2862, allocations: 90.52 kB / 400.8 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.796e-05/0.2863, allocations: 84.91 kB / 400.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.917e-05/0.2864, allocations: 100.1 kB / 401 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.2868, allocations: 354.1 kB / 401.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2868, allocations: 0 / 401.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2868, allocations: 0 / 401.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2868, allocations: 1.625 kB / 401.4 MB, free: 6.027 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.0008612/0.2876, allocations: 0.5928 MB / 402 MB, free: 5.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2877, allocations: 13.67 kB / 402 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.459e-05/0.2877, allocations: 45.39 kB / 402 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/0.2878, allocations: 36.17 kB / 402 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.2882, allocations: 276.6 kB / 402.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2882, allocations: 6.812 kB / 402.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.2882, allocations: 21.58 kB / 402.3 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.2884, allocations: 122.6 kB / 402.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2884, allocations: 0 / 402.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.2885, allocations: 5.938 kB / 402.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2885, allocations: 2.125 kB / 402.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000165/0.2886, allocations: 72.22 kB / 402.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005952/0.2892, allocations: 441.1 kB / 403 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.2896, allocations: 129.4 kB / 403.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.2897, allocations: 46 kB / 403.1 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.2897, allocations: 5.125 kB / 403.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.2899, allocations: 116.6 kB / 403.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.482e-06/0.2899, allocations: 3.938 kB / 403.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004913/0.2904, allocations: 226 kB / 403.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/0.2904, allocations: 57.38 kB / 403.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.2909, allocations: 433.9 kB / 404 MB, free: 4.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.2909, allocations: 32.48 kB / 404 MB, free: 4.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.929e-05/0.291, allocations: 165.1 kB / 404.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.02e-05/0.2911, allocations: 45.56 kB / 404.2 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.647e-05/0.2911, allocations: 42.67 kB / 404.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.2912, allocations: 341.1 kB / 404.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.2913, allocations: 50.11 kB / 404.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.2915, allocations: 150.5 kB / 404.8 MB, free: 3.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.2916, allocations: 114 kB / 404.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2916, allocations: 1.5 kB / 404.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002885/0.2919, allocations: 174.5 kB / 405.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2919, allocations: 14.67 kB / 405.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.2919, allocations: 1.125 kB / 405.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.292, allocations: 0.9062 kB / 405.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.2921, allocations: 30.05 kB / 405.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.2921, allocations: 6.141 kB / 405.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.592e-05/0.2922, allocations: 16.91 kB / 405.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.2922, allocations: 9.203 kB / 405.1 MB, free: 3.375 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.000124/0.2923, allocations: 167.5 kB / 405.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.271e-05/0.2924, allocations: 33.28 kB / 405.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003601/0.2927, allocations: 201.8 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2927, allocations: 1.25 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2927, allocations: 1 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2927, allocations: 5.641 kB / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.2929, allocations: 257.4 kB / 405.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2929, allocations: 0 / 405.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.055e-05/0.293, allocations: 14.95 kB / 405.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.293, allocations: 5.031 kB / 405.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.293, allocations: 7.094 kB / 405.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.293, allocations: 0.9375 kB / 405.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.293, allocations: 1.219 kB / 405.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.2933, allocations: 213.9 kB / 406 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.964e-05/0.2934, allocations: 31.55 kB / 406.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.2934, allocations: 10.73 kB / 406.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.351e-05/0.2935, allocations: 10.48 kB / 406.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.036e-05/0.2936, allocations: 21.25 kB / 406.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.2936, allocations: 9.891 kB / 406.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003083/0.2939, allocations: 316.4 kB / 406.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2939, allocations: 0 / 406.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000281/0.2942, allocations: 53.12 kB / 406.5 MB, free: 2.57 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 (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.001903/0.2961, allocations: 1.102 MB / 407.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.2964, allocations: 128.1 kB / 407.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2964, allocations: 0 / 407.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.2965, allocations: 59.23 kB / 407.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.2969, allocations: 78.86 kB / 407.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.2999, allocations: 2.841 MB / 410.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.3001, allocations: 169.1 kB / 410.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.3003, allocations: 43.34 kB / 410.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.3004, allocations: 95.52 kB / 411 MB, free: 15.62 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3004, allocations: 0 / 411 MB, free: 15.62 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0376/0.338, allocations: 8.016 MB / 419 MB, free: 11.22 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.06, allocations: 1.219 kB / 419 MB, free: 11.22 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.488431549165398]