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.00151/0.00151, 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.001547/0.001547, 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.486/1.486, 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.001857/0.001857, allocations: 59.91 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.286, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003304/0.2893, allocations: 2.007 MB / 398.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.291, allocations: 1.085 MB / 399.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.2911, allocations: 10.91 kB / 399.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009295/0.292, allocations: 306.9 kB / 399.7 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004932/0.2925, allocations: 214.9 kB / 399.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006758/0.2932, allocations: 262.9 kB / 400.2 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004106/0.2936, allocations: 332.3 kB / 400.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.2937, allocations: 52.11 kB / 400.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.294, allocations: 153.5 kB / 400.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.2942, allocations: 149.1 kB / 400.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.037e-05/0.2942, allocations: 17.88 kB / 400.9 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.2944, allocations: 92.78 kB / 401 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.2945, allocations: 93.09 kB / 401.1 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2946, allocations: 120.5 kB / 401.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004341/0.2951, allocations: 351.4 kB / 401.5 MB, free: 5.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2951, allocations: 0.7969 kB / 401.5 MB, free: 5.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2951, allocations: 1.406 kB / 401.5 MB, free: 5.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2951, allocations: 4 kB / 401.5 MB, free: 5.949 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.0008686/0.296, allocations: 0.5972 MB / 402.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.296, allocations: 13.73 kB / 402.1 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.109e-05/0.296, allocations: 45.42 kB / 402.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.828e-05/0.2961, allocations: 36.91 kB / 402.2 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.2965, allocations: 266.3 kB / 402.5 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.2965, allocations: 9.719 kB / 402.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.2965, allocations: 16.86 kB / 402.5 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.2968, allocations: 145.1 kB / 402.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2968, allocations: 1.094 kB / 402.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.2968, allocations: 5.922 kB / 402.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2968, allocations: 6.406 kB / 402.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.297, allocations: 72.38 kB / 402.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006319/0.2976, allocations: 468.3 kB / 403.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.298, allocations: 126.4 kB / 403.3 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.2981, allocations: 48.31 kB / 403.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.2981, allocations: 6.188 kB / 403.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.2983, allocations: 120.4 kB / 403.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.2983, allocations: 1.219 kB / 403.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005024/0.2988, allocations: 209.5 kB / 403.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.2989, allocations: 105.5 kB / 403.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004954/0.2994, allocations: 438.1 kB / 404.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.2994, allocations: 36.55 kB / 404.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.2995, allocations: 169.2 kB / 404.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.2996, allocations: 41.41 kB / 404.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.749e-05/0.2996, allocations: 42.64 kB / 404.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.506e-05/0.2997, allocations: 341.4 kB / 404.8 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.2998, allocations: 47.86 kB / 404.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.3, allocations: 104.1 kB / 405 MB, free: 3.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.3002, allocations: 102.2 kB / 405.1 MB, free: 3.371 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3002, allocations: 1.906 kB / 405.1 MB, free: 3.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003274/0.3005, allocations: 183.6 kB / 405.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3005, allocations: 13.72 kB / 405.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3005, allocations: 1.469 kB / 405.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.3005, allocations: 2 kB / 405.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.3007, allocations: 21.62 kB / 405.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.3007, allocations: 1.375 kB / 405.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.3008, allocations: 17.19 kB / 405.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.3008, allocations: 4.922 kB / 405.3 MB, free: 3.258 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.0001445/0.3009, allocations: 179.7 kB / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.93e-05/0.301, allocations: 38.22 kB / 405.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003944/0.3014, allocations: 179 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3014, allocations: 2.75 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3014, allocations: 1 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3014, allocations: 1.031 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003028/0.3017, allocations: 275.8 kB / 406 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3017, allocations: 0 / 406 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.357e-05/0.3018, allocations: 16.97 kB / 406 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.3018, allocations: 5.219 kB / 406 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.3018, allocations: 6.172 kB / 406 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3018, allocations: 1.5 kB / 406 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3018, allocations: 4.828 kB / 406 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.3021, allocations: 195 kB / 406.2 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.863e-05/0.3022, allocations: 37.81 kB / 406.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.979e-05/0.3022, allocations: 3.141 kB / 406.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.705e-05/0.3023, allocations: 11.48 kB / 406.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.3024, allocations: 23.72 kB / 406.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.3024, allocations: 6.141 kB / 406.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003667/0.3028, allocations: 315.2 kB / 406.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3028, allocations: 0 / 406.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.3031, allocations: 48.66 kB / 406.7 MB, free: 2.453 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.001913/0.305, allocations: 1.056 MB / 407.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.3054, allocations: 119 kB / 407.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3054, allocations: 0 / 407.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3055, allocations: 57.75 kB / 407.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.306, allocations: 68.2 kB / 408 MB, free: 1.453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.3093, allocations: 2.82 MB / 410.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.3098, allocations: 0.7788 MB / 411.6 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001639/0.31, allocations: 48.69 kB / 411.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.3101, allocations: 94.81 kB / 411.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3101, allocations: 0 / 411.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03913/0.3492, allocations: 7.429 MB / 419.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.34, allocations: 9.016 kB / 419.1 MB, free: 11.09 MB / 334.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199601 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.csv","/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] "Error: Could not read variable Pre1.u in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.041511722003634]