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.001328/0.001328, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001399/0.001399, allocations: 216 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001665/0.001665, allocations: 47.92 kB / 377.8 MB, free: 3.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2852, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003526/0.2887, allocations: 2.059 MB / 433.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.291, allocations: 1.306 MB / 434.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.2911, allocations: 3.938 kB / 434.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008827/0.2919, allocations: 310.3 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005861/0.2925, allocations: 263.1 kB / 435.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.2931, allocations: 234.8 kB / 435.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.2935, allocations: 355.1 kB / 435.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.2937, allocations: 48.7 kB / 435.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002057/0.2939, allocations: 151.4 kB / 435.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.2941, allocations: 163.3 kB / 436 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.2941, allocations: 20 kB / 436 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.2943, allocations: 99.8 kB / 436.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2944, allocations: 83.75 kB / 436.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2946, allocations: 131.1 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.295, allocations: 360.4 kB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.295, allocations: 3.938 kB / 436.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.295, allocations: 0 / 436.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.295, allocations: 8 kB / 436.7 MB, free: 1.293 MB / 334.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.0009725/0.296, allocations: 0.601 MB / 437.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.296, allocations: 16.02 kB / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.601e-05/0.2961, allocations: 38.75 kB / 437.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.888e-05/0.2962, allocations: 36.7 kB / 437.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.2966, allocations: 280.7 kB / 437.6 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2966, allocations: 16.36 kB / 437.7 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.2967, allocations: 19.94 kB / 437.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.2969, allocations: 145.7 kB / 437.8 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.297, allocations: 0 / 437.8 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.297, allocations: 4 kB / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.297, allocations: 0 / 437.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.2972, allocations: 68.02 kB / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007253/0.2979, allocations: 475.4 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.2982, allocations: 118.7 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.2983, allocations: 48.83 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.2984, allocations: 4 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.2986, allocations: 121.2 kB / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2986, allocations: 0 / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000536/0.2991, allocations: 217.3 kB / 438.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/0.2992, allocations: 102.8 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005774/0.2998, allocations: 457.6 kB / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.2998, allocations: 37.7 kB / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.3, allocations: 171.9 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.3, allocations: 39.69 kB / 439.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.211e-05/0.3001, allocations: 41.7 kB / 439.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.3003, allocations: 350.8 kB / 440 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3004, allocations: 39.97 kB / 440.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.3006, allocations: 109 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002213/0.3008, allocations: 105.5 kB / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3008, allocations: 0 / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003491/0.3012, allocations: 177.3 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3012, allocations: 12 kB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.3012, allocations: 4 kB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.3012, allocations: 0 / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.3013, allocations: 31.92 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3013, allocations: 3.938 kB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.3014, allocations: 19.88 kB / 440.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3015, allocations: 12.05 kB / 440.5 MB, free: 13.18 MB / 350.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.0002036/0.3017, allocations: 175.5 kB / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.3018, allocations: 35.75 kB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004172/0.3022, allocations: 195.4 kB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3022, allocations: 0 / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3022, allocations: 0 / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.3023, allocations: 3.984 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.3026, allocations: 276.5 kB / 441.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.3026, allocations: 0 / 441.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.132e-05/0.3026, allocations: 11.94 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3026, allocations: 3.938 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.3027, allocations: 11.98 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3027, allocations: 4 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3027, allocations: 0 / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003711/0.303, allocations: 200.8 kB / 441.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.018e-05/0.3031, allocations: 31.7 kB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.783e-05/0.3031, allocations: 8 kB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.044e-05/0.3032, allocations: 7.984 kB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.201e-05/0.3033, allocations: 19.97 kB / 441.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.3033, allocations: 4 kB / 441.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004153/0.3037, allocations: 331.1 kB / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3037, allocations: 0 / 441.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003245/0.3041, allocations: 55.94 kB / 441.9 MB, free: 11.77 MB / 350.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.002255/0.3063, allocations: 1.074 MB / 442.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.3066, allocations: 111.9 kB / 443.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3066, allocations: 0 / 443.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.3068, allocations: 59.91 kB / 443.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.3072, allocations: 81.53 kB / 443.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.3111, allocations: 2.867 MB / 446.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.3115, allocations: 0.783 MB / 446.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.3117, allocations: 46.25 kB / 446.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.3118, allocations: 99.39 kB / 447 MB, free: 6.672 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3118, allocations: 0 / 447 MB, free: 6.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0379/0.3497, allocations: 7.582 MB / 454.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.99, allocations: 7.984 kB / 454.6 MB, free: 15.16 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/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: 14.586711315903813]