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.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.0008899/0.0008899, allocations: 87.62 kB / 21.43 MB, free: 3.121 MB / 18.57 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.004494/0.004494, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 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 0.8718/0.8718, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 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.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.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: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.16e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00331/0.003332, allocations: 1.782 MB / 300.2 MB, free: 1.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.004518, allocations: 0.9204 MB / 301.1 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.004625, allocations: 4 kB / 301.1 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005682/0.005193, allocations: 179.4 kB / 301.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002811/0.005474, allocations: 131.4 kB / 301.4 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.00578, allocations: 147.6 kB / 301.6 MB, free: 356 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.005991, allocations: 207.3 kB / 301.8 MB, free: 148 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.006093, allocations: 21.78 kB / 301.8 MB, free: 128 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.006215, allocations: 111.7 kB / 301.9 MB, free: 16 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1158/0.122, allocations: 72.3 kB / 302 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.481e-05/0.1221, allocations: 10.22 kB / 302 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.1222, allocations: 66.02 kB / 302.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.78e-05/0.1223, allocations: 47.41 kB / 302.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.456e-05/0.1224, allocations: 46.58 kB / 302.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.1227, allocations: 221.1 kB / 302.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1227, allocations: 1 kB / 302.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1227, allocations: 0 / 302.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.1227, allocations: 0 / 302.4 MB, free: 13.34 MB / 282.7 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.0006137/0.1233, allocations: 464 kB / 302.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1233, allocations: 15.55 kB / 302.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.814e-05/0.1233, allocations: 38.3 kB / 302.9 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.1234, allocations: 21.48 kB / 302.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1236, allocations: 200.5 kB / 303.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.1236, allocations: 6.828 kB / 303.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.1236, allocations: 4.969 kB / 303.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.1238, allocations: 112.8 kB / 303.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1238, allocations: 1.156 kB / 303.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1238, allocations: 9.359 kB / 303.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1238, allocations: 4.188 kB / 303.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.817e-05/0.1239, allocations: 53.69 kB / 303.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.1243, allocations: 0.5572 MB / 303.8 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.1245, allocations: 122.6 kB / 304 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.922e-05/0.1246, allocations: 53.98 kB / 304 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.1246, allocations: 8.094 kB / 304 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/0.1247, allocations: 116.1 kB / 304.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.1247, allocations: 0 / 304.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003181/0.125, allocations: 185 kB / 304.3 MB, free: 12.01 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.1251, allocations: 109.9 kB / 304.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.1253, allocations: 286 kB / 304.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.1253, allocations: 35.27 kB / 304.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.1254, allocations: 121.1 kB / 304.8 MB, free: 11.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.1254, allocations: 33.84 kB / 304.9 MB, free: 11.65 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.1254, allocations: 33.42 kB / 304.9 MB, free: 11.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.929e-05/0.1255, allocations: 335.4 kB / 305.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.78e-05/0.1255, allocations: 34.17 kB / 305.3 MB, free: 11.31 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.559e-05/0.1256, allocations: 106.5 kB / 305.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.1257, allocations: 99.22 kB / 305.5 MB, free: 11.19 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1257, allocations: 0.5156 kB / 305.5 MB, free: 11.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001623/0.1259, allocations: 146.4 kB / 305.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1259, allocations: 6.719 kB / 305.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1259, allocations: 1.156 kB / 305.6 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1259, allocations: 6.375 kB / 305.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.031e-05/0.126, allocations: 16.75 kB / 305.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.126, allocations: 1.859 kB / 305.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.817e-05/0.126, allocations: 11.95 kB / 305.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.126, allocations: 8.375 kB / 305.7 MB, free: 11.14 MB / 282.7 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 7.411e-05/0.1261, allocations: 147.6 kB / 305.8 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.05e-05/0.1261, allocations: 22.53 kB / 305.8 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.1263, allocations: 113.5 kB / 305.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1263, allocations: 6.344 kB / 306 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.1263, allocations: 2.109 kB / 306 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1263, allocations: 7.969 kB / 306 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.1264, allocations: 209.5 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1264, allocations: 1.219 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.955e-05/0.1265, allocations: 7.703 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1265, allocations: 1.438 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.1265, allocations: 2.625 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1265, allocations: 3.266 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1265, allocations: 2.25 kB / 306.2 MB, free: 10.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.1266, allocations: 195.1 kB / 306.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.153e-05/0.1267, allocations: 16.23 kB / 306.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.1267, allocations: 6.25 kB / 306.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.876e-05/0.1267, allocations: 15.03 kB / 306.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.1268, allocations: 14.14 kB / 306.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.1268, allocations: 5.344 kB / 306.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.1269, allocations: 213.4 kB / 306.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1269, allocations: 0 / 306.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001865/0.1271, allocations: 38.58 kB / 306.7 MB, free: 10.62 MB / 282.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0009213/0.128, allocations: 1.069 MB / 307.7 MB, free: 9.754 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.1282, allocations: 93.48 kB / 307.8 MB, free: 9.754 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1282, allocations: 1.719 kB / 307.8 MB, free: 9.754 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.656e-05/0.1283, allocations: 52.66 kB / 307.9 MB, free: 9.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.1286, allocations: 56.25 kB / 307.9 MB, free: 9.742 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.1302, allocations: 2.194 MB / 310.1 MB, free: 8.203 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.906e-05/0.1303, allocations: 120 kB / 310.3 MB, free: 8.129 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.059e-05/0.1304, allocations: 26.19 kB / 310.3 MB, free: 8.125 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.038e-05/0.1304, allocations: 61.8 kB / 310.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1304, allocations: 0 / 310.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.1477, allocations: 6.004 MB / 316.3 MB, free: 6.316 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.77/6.918, allocations: 5.047 kB / 316.4 MB, free: 6.312 MB / 282.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.529878890141845]