Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 122.3 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 190.9 kB / 21.39 MB, free: 1.672 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.377/1.377, allocations: 207.6 MB / 231.8 MB, free: 4.109 MB / 174.1 MB " [Timeout remaining time 179] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 55.92 kB / 342.2 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.09069, allocations: 49.12 MB / 391.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003246/0.09394, allocations: 1.828 MB / 393.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.09562, allocations: 0.9711 MB / 394.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.552e-05/0.0957, allocations: 0 / 394.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005963/0.0963, allocations: 175.5 kB / 394.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.0966, allocations: 123.5 kB / 394.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.097, allocations: 147.6 kB / 394.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.09726, allocations: 203.4 kB / 394.8 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.745e-05/0.09736, allocations: 17.48 kB / 394.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.09749, allocations: 95.61 kB / 394.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.09762, allocations: 83.67 kB / 395 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.09765, allocations: 8 kB / 395 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.09779, allocations: 63.89 kB / 395.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.126e-05/0.09786, allocations: 51.84 kB / 395.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.356e-05/0.09795, allocations: 71.55 kB / 395.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.09828, allocations: 223 kB / 395.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.09828, allocations: 0 / 395.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09829, allocations: 4 kB / 395.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.09829, allocations: 0 / 395.4 MB, free: 4.688 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008767/0.09917, allocations: 0.5232 MB / 395.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.09921, allocations: 12.03 kB / 395.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.463e-05/0.09925, allocations: 38.75 kB / 396 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.09931, allocations: 24.78 kB / 396 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.09967, allocations: 266.9 kB / 396.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.09969, allocations: 4.375 kB / 396.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.09971, allocations: 15.88 kB / 396.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.09995, allocations: 109.9 kB / 396.4 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.09996, allocations: 4 kB / 396.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.09998, allocations: 4 kB / 396.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.09998, allocations: 4 kB / 396.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001429/0.1001, allocations: 47.91 kB / 396.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007079/0.1008, allocations: 0.6143 MB / 397.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.1011, allocations: 115.9 kB / 397.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1012, allocations: 50.56 kB / 397.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.1012, allocations: 3.984 kB / 397.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.1015, allocations: 121.9 kB / 397.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.1015, allocations: 0 / 397.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004514/0.1019, allocations: 181.4 kB / 397.5 MB, free: 2.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.102, allocations: 132.5 kB / 397.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.1023, allocations: 288.9 kB / 397.9 MB, free: 1.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1024, allocations: 29.7 kB / 398 MB, free: 1.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1025, allocations: 128.3 kB / 398.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.1025, allocations: 31.86 kB / 398.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/0.1026, allocations: 33.7 kB / 398.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1027, allocations: 338.9 kB / 398.5 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.872e-05/0.1028, allocations: 27.98 kB / 398.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1029, allocations: 77.98 kB / 398.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.1031, allocations: 96.25 kB / 398.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1031, allocations: 4 kB / 398.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002685/0.1034, allocations: 141.4 kB / 398.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.1034, allocations: 7.938 kB / 398.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1034, allocations: 3.984 kB / 398.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.1034, allocations: 4 kB / 398.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.177e-05/0.1035, allocations: 20.03 kB / 398.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1035, allocations: 0.625 kB / 398.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.1036, allocations: 27.81 kB / 398.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1036, allocations: 4 kB / 398.9 MB, free: 0.8398 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.000146/0.1038, allocations: 153.6 kB / 399 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.1038, allocations: 15.91 kB / 399 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.539e-05/0.1039, allocations: 25.7 kB / 399.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1039, allocations: 4 kB / 399.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1039, allocations: 4 kB / 399.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1039, allocations: 3.938 kB / 399.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.1041, allocations: 245.5 kB / 399.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1041, allocations: 0 / 399.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.879e-05/0.1042, allocations: 7.938 kB / 399.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1042, allocations: 4 kB / 399.3 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1042, allocations: 7.922 kB / 399.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1042, allocations: 4 kB / 399.3 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1042, allocations: 0 / 399.3 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003143/0.1045, allocations: 186.5 kB / 399.5 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.11e-05/0.1046, allocations: 89.02 kB / 399.6 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.106e-05/0.1046, allocations: 8.078 kB / 399.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.507e-05/0.1047, allocations: 11.92 kB / 399.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.1048, allocations: 23.91 kB / 399.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.1048, allocations: 8 kB / 399.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.105, allocations: 212.5 kB / 399.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.105, allocations: 0 / 399.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002589/0.1053, allocations: 35.94 kB / 399.9 MB, free: 15.71 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002036/0.1073, allocations: 1.033 MB / 400.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.1076, allocations: 83.91 kB / 401 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1076, allocations: 0 / 401 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.1077, allocations: 51.91 kB / 401.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.1081, allocations: 60.44 kB / 401.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.1107, allocations: 2.162 MB / 403.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.1111, allocations: 0.7397 MB / 404 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.923e-05/0.1112, allocations: 29.52 kB / 404.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.1113, allocations: 55.42 kB / 404.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1113, allocations: 0 / 404.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02886/0.1401, allocations: 5.145 MB / 409.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/8.256, allocations: 15.86 kB / 409.3 MB, free: 6.07 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.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.571168115828186]