Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001479/0.001479, allocations: 124.2 kB / 17.78 MB, free: 5.121 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.001496/0.001496, allocations: 189.2 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 59.91 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09346, allocations: 52.13 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003047/0.09651, allocations: 1.841 MB / 419.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.0982, allocations: 1.04 MB / 420.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.469e-05/0.09827, allocations: 8 kB / 420.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005347/0.09881, allocations: 158.9 kB / 420.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002909/0.0991, allocations: 123.5 kB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.09953, allocations: 179.5 kB / 421.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002526/0.09978, allocations: 203.4 kB / 421.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.816e-05/0.09986, allocations: 13.56 kB / 421.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.09998, allocations: 91.61 kB / 421.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.1001, allocations: 91.59 kB / 421.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.1001, allocations: 8 kB / 421.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.1003, allocations: 51.97 kB / 421.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.213e-05/0.1003, allocations: 51.83 kB / 421.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.948e-05/0.1004, allocations: 79.48 kB / 421.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.1007, allocations: 223.1 kB / 421.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1007, allocations: 0 / 421.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1007, allocations: 4 kB / 421.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1007, allocations: 0 / 421.9 MB, free: 8.453 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008226/0.1016, allocations: 0.5233 MB / 422.4 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.1016, allocations: 12.03 kB / 422.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.1016, allocations: 42.73 kB / 422.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.018e-05/0.1017, allocations: 24.8 kB / 422.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.102, allocations: 262.6 kB / 422.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.102, allocations: 4 kB / 422.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.1021, allocations: 11.98 kB / 422.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.1023, allocations: 112.9 kB / 422.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1023, allocations: 0 / 422.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.1023, allocations: 4 kB / 422.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1023, allocations: 8 kB / 422.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.1025, allocations: 47.91 kB / 423 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006516/0.1031, allocations: 0.6066 MB / 423.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.1034, allocations: 119.9 kB / 423.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.1035, allocations: 54.48 kB / 423.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.1035, allocations: 4 kB / 423.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.1037, allocations: 117.9 kB / 423.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.1037, allocations: 0 / 423.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004352/0.1042, allocations: 185.3 kB / 424 MB, free: 6.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.188e-05/0.1042, allocations: 132.6 kB / 424.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.1046, allocations: 292.9 kB / 424.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.1046, allocations: 29.7 kB / 424.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.367e-05/0.1047, allocations: 128.3 kB / 424.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.1047, allocations: 19.86 kB / 424.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.1048, allocations: 33.7 kB / 424.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1049, allocations: 334.8 kB / 425 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.889e-05/0.105, allocations: 31.98 kB / 425 MB, free: 5.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.1051, allocations: 84.17 kB / 425.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.1053, allocations: 104.7 kB / 425.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1053, allocations: 4 kB / 425.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002776/0.1056, allocations: 141.5 kB / 425.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.1056, allocations: 4 kB / 425.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.1056, allocations: 0 / 425.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.1056, allocations: 7.938 kB / 425.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.1057, allocations: 15.94 kB / 425.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1057, allocations: 0 / 425.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.1058, allocations: 24.03 kB / 425.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.1058, allocations: 4 kB / 425.4 MB, free: 4.609 MB / 350.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.0001371/0.106, allocations: 149.6 kB / 425.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.655e-05/0.106, allocations: 19.86 kB / 425.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.541e-05/0.1061, allocations: 25.7 kB / 425.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.1061, allocations: 7.938 kB / 425.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1061, allocations: 0 / 425.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.1061, allocations: 3.984 kB / 425.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.1063, allocations: 249.5 kB / 425.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1063, allocations: 3.938 kB / 425.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.712e-05/0.1064, allocations: 4 kB / 425.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1064, allocations: 4 kB / 425.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1064, allocations: 3.984 kB / 425.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.1064, allocations: 7.938 kB / 425.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1064, allocations: 0 / 425.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.1067, allocations: 182.7 kB / 426 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.517e-05/0.1068, allocations: 89.02 kB / 426.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.1068, allocations: 11.98 kB / 426.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.898e-05/0.1069, allocations: 15.86 kB / 426.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.107, allocations: 15.98 kB / 426.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.107, allocations: 4 kB / 426.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.1072, allocations: 212.5 kB / 426.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1072, allocations: 4 kB / 426.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.1075, allocations: 35.94 kB / 426.4 MB, free: 3.477 MB / 350.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.00198/0.1094, allocations: 1.04 MB / 427.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002696/0.1097, allocations: 87.83 kB / 427.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1097, allocations: 0 / 427.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.1098, allocations: 47.92 kB / 427.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.1102, allocations: 51.23 kB / 427.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.1128, allocations: 2.166 MB / 429.8 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.1132, allocations: 0.7357 MB / 430.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.884e-05/0.1132, allocations: 29.53 kB / 430.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.729e-05/0.1133, allocations: 55.42 kB / 430.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.1133, allocations: 0 / 430.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.1419, allocations: 5.14 MB / 435.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/7.878, allocations: 3.562 kB / 435.8 MB, free: 10.2 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.353984136600047]