Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001279/0.001279, 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.001406/0.001406, 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.469/1.469, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 52.02 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.1006, allocations: 53.33 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003258/0.1038, allocations: 1.864 MB / 428.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1059, allocations: 1.185 MB / 429.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.91e-05/0.106, allocations: 0 / 429.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006672/0.1066, allocations: 174.2 kB / 429.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.107, allocations: 171.3 kB / 429.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003796/0.1074, allocations: 135.6 kB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002791/0.1077, allocations: 223.3 kB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1078, allocations: 13.56 kB / 430 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1079, allocations: 87.67 kB / 430.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.1081, allocations: 99.53 kB / 430.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.1081, allocations: 12 kB / 430.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.1082, allocations: 55.97 kB / 430.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.1083, allocations: 55.77 kB / 430.4 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.781e-05/0.1084, allocations: 75.53 kB / 430.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003326/0.1087, allocations: 227 kB / 430.6 MB, free: 468 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1087, allocations: 4 kB / 430.7 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1087, allocations: 0 / 430.7 MB, free: 464 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1087, allocations: 0 / 430.7 MB, free: 464 kB / 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.2054/0.3141, allocations: 0.5261 MB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3142, allocations: 11.59 kB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.3142, allocations: 36.83 kB / 431.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.491e-05/0.3143, allocations: 22.61 kB / 431.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.3146, allocations: 267.8 kB / 431.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.3146, allocations: 6.516 kB / 431.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.3146, allocations: 10 kB / 431.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.3149, allocations: 118.7 kB / 431.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3149, allocations: 4.594 kB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.3149, allocations: 0.875 kB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3149, allocations: 2.25 kB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.315, allocations: 53.58 kB / 431.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005264/0.3156, allocations: 0.6069 MB / 432.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.3158, allocations: 121.5 kB / 432.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.517e-05/0.3159, allocations: 44.5 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.3159, allocations: 5.344 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.3161, allocations: 119.6 kB / 432.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.3161, allocations: 0 / 432.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004438/0.3166, allocations: 179.9 kB / 432.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3166, allocations: 136.9 kB / 432.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.3169, allocations: 292.7 kB / 433.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.3169, allocations: 33.45 kB / 433.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.267e-05/0.317, allocations: 124.8 kB / 433.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.317, allocations: 33.73 kB / 433.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.3171, allocations: 38.3 kB / 433.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.69e-05/0.3172, allocations: 336.4 kB / 433.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.472e-05/0.3172, allocations: 29.77 kB / 433.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.952e-05/0.3173, allocations: 81.56 kB / 433.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.3175, allocations: 100.4 kB / 433.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3175, allocations: 3.609 kB / 434 MB, free: 9.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000231/0.3177, allocations: 144.6 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3177, allocations: 9.141 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3178, allocations: 2.625 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3178, allocations: 3.844 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.598e-05/0.3179, allocations: 13.25 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3179, allocations: 10.39 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.318, allocations: 14.23 kB / 434.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.318, allocations: 7.562 kB / 434.2 MB, free: 9.371 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.0001002/0.3181, allocations: 147 kB / 434.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.3181, allocations: 23.02 kB / 434.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.3182, allocations: 22.94 kB / 434.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3182, allocations: 3.672 kB / 434.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3182, allocations: 2.094 kB / 434.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3182, allocations: 2.812 kB / 434.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.3183, allocations: 256.8 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3183, allocations: 1.031 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.761e-05/0.3184, allocations: 6.281 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3184, allocations: 2.312 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.3184, allocations: 6.109 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3184, allocations: 2.25 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3184, allocations: 0.6094 kB / 434.6 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.3187, allocations: 189 kB / 434.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.3187, allocations: 96.55 kB / 434.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.3187, allocations: 5.562 kB / 434.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/0.3188, allocations: 12.14 kB / 434.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.3189, allocations: 17.98 kB / 434.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.3189, allocations: 7.906 kB / 434.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000176/0.3191, allocations: 215.1 kB / 435.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3191, allocations: 0 / 435.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002617/0.3194, allocations: 43.34 kB / 435.2 MB, free: 8.742 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.001768/0.3211, allocations: 1.032 MB / 436.2 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.3214, allocations: 85.5 kB / 436.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3214, allocations: 0 / 436.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.3215, allocations: 50.19 kB / 436.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.3219, allocations: 52.23 kB / 436.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.3241, allocations: 2.186 MB / 438.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.3242, allocations: 0.7374 MB / 439.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.418e-05/0.3243, allocations: 24.19 kB / 439.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.35e-05/0.3244, allocations: 61.45 kB / 439.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3244, allocations: 0 / 439.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.3532, allocations: 5.232 MB / 444.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.419, allocations: 23.17 kB / 444.7 MB, free: 4.953 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199283 Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable table.y in file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.936021829998936]