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.001887/0.001887, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002071/0.002071, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.421/1.421, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001434/0.001434, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.09121, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003244/0.09445, allocations: 2.037 MB / 428.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.09646, allocations: 1.282 MB / 429.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.446e-05/0.09655, allocations: 3.938 kB / 429.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007477/0.0973, allocations: 307.1 kB / 429.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005079/0.09781, allocations: 262.8 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.0983, allocations: 223.5 kB / 430.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.09869, allocations: 359 kB / 430.8 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.0988, allocations: 40.73 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.09898, allocations: 151.4 kB / 430.9 MB, free: 144 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1971/0.2961, allocations: 157.6 kB / 431.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.2962, allocations: 21.53 kB / 431.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003438/0.2965, allocations: 84.19 kB / 431.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.2967, allocations: 86.45 kB / 431.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.2969, allocations: 133.8 kB / 431.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006838/0.2976, allocations: 368.3 kB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2976, allocations: 5.094 kB / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2976, allocations: 0 / 431.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.2976, allocations: 0.9062 kB / 431.8 MB, free: 7.859 MB / 350.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.001228/0.2988, allocations: 0.6781 MB / 432.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.2989, allocations: 9.688 kB / 432.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.341e-05/0.2989, allocations: 42.75 kB / 432.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.2991, allocations: 43.06 kB / 432.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.2996, allocations: 336.5 kB / 432.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.2996, allocations: 13.08 kB / 432.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.2996, allocations: 11.34 kB / 432.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.3, allocations: 151.6 kB / 433.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3, allocations: 0.8125 kB / 433.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.3, allocations: 3.375 kB / 433.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3, allocations: 5.438 kB / 433.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.3002, allocations: 73.2 kB / 433.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007574/0.301, allocations: 0.4889 MB / 433.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.3014, allocations: 125.2 kB / 433.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.3015, allocations: 47.53 kB / 433.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.3015, allocations: 3.75 kB / 433.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.3018, allocations: 114.5 kB / 433.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.3018, allocations: 0 / 433.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005837/0.3024, allocations: 221.7 kB / 434.1 MB, free: 6.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.3024, allocations: 105 kB / 434.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.303, allocations: 455.7 kB / 434.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3031, allocations: 32.25 kB / 434.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3032, allocations: 171.4 kB / 434.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.3032, allocations: 49.86 kB / 434.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.3033, allocations: 41.28 kB / 435 MB, free: 6.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.752e-05/0.3034, allocations: 346.8 kB / 435.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.3035, allocations: 43.48 kB / 435.3 MB, free: 5.805 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.3037, allocations: 100 kB / 435.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.304, allocations: 116.5 kB / 435.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.304, allocations: 1.125 kB / 435.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004403/0.3044, allocations: 180.6 kB / 435.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3044, allocations: 6.344 kB / 435.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3044, allocations: 5.062 kB / 435.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3044, allocations: 1.125 kB / 435.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3046, allocations: 28.88 kB / 435.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.351e-06/0.3046, allocations: 4.469 kB / 435.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.3047, allocations: 17.03 kB / 435.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3047, allocations: 8.375 kB / 435.8 MB, free: 5.66 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.000121/0.3048, allocations: 165.8 kB / 436 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.635e-05/0.3049, allocations: 36.44 kB / 436 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.329e-05/0.3049, allocations: 35.56 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3049, allocations: 1.312 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3049, allocations: 1.344 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.3049, allocations: 1.781 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.3051, allocations: 312.9 kB / 436.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3051, allocations: 1.125 kB / 436.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.846e-05/0.3052, allocations: 12.75 kB / 436.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3052, allocations: 64 / 436.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.3052, allocations: 13.42 kB / 436.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3052, allocations: 2.438 kB / 436.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3052, allocations: 1.406 kB / 436.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.3055, allocations: 201.6 kB / 436.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.3056, allocations: 110.2 kB / 436.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.3056, allocations: 6.656 kB / 436.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.748e-05/0.3057, allocations: 18.09 kB / 436.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.3058, allocations: 13.95 kB / 436.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.3058, allocations: 6.562 kB / 436.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003235/0.3061, allocations: 330.7 kB / 437 MB, free: 5.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3061, allocations: 1.094 kB / 437 MB, free: 5.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000304/0.3064, allocations: 56.42 kB / 437.1 MB, free: 5.023 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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * 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.001842/0.3083, allocations: 1.07 MB / 438.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002855/0.3085, allocations: 111.7 kB / 438.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3085, allocations: 1.781 kB / 438.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.3087, allocations: 54.53 kB / 438.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004156/0.3091, allocations: 77.56 kB / 438.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/0.3122, allocations: 2.859 MB / 441.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.3124, allocations: 0.7782 MB / 442 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.3125, allocations: 49.8 kB / 442.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.3126, allocations: 95.36 kB / 442.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3126, allocations: 1.375 kB / 442.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.3459, allocations: 7.399 MB / 449.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.569, allocations: 17.25 kB / 449.6 MB, free: 1.047 MB / 350.1 MB " [Timeout remaining time 651] (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: 10.981373187154531]