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.001493/0.001493, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001425/0.001425, allocations: 183.9 kB / 23.72 MB, free: 4.699 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.454/1.454, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.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.001692/0.001692, allocations: 47.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3026, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003797/0.3064, allocations: 1.855 MB / 424.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.3085, allocations: 1.056 MB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.3086, allocations: 3.938 kB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007813/0.3094, allocations: 167.5 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003534/0.3098, allocations: 135.5 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005896/0.3103, allocations: 182.5 kB / 426 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00031/0.3107, allocations: 207.3 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.3108, allocations: 17.69 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.3109, allocations: 87.61 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.3111, allocations: 91.66 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.3111, allocations: 16 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001679/0.3113, allocations: 55.97 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.251e-05/0.3114, allocations: 51.77 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.3115, allocations: 79.53 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003891/0.3119, allocations: 215.5 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3119, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3119, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.3119, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.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.001019/0.313, allocations: 474.7 kB / 427.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.313, allocations: 8.031 kB / 427.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.918e-05/0.3131, allocations: 38.73 kB / 427.3 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.3131, allocations: 24.73 kB / 427.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.3135, allocations: 204.8 kB / 427.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.3135, allocations: 4 kB / 427.5 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.3135, allocations: 8 kB / 427.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.3138, allocations: 113.9 kB / 427.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3138, allocations: 0 / 427.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.3138, allocations: 3.984 kB / 427.7 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.3138, allocations: 4 kB / 427.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.314, allocations: 51.91 kB / 427.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007531/0.3147, allocations: 0.5784 MB / 428.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.315, allocations: 115.9 kB / 428.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.3151, allocations: 50.56 kB / 428.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.3152, allocations: 7.984 kB / 428.5 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.3154, allocations: 117.9 kB / 428.6 MB, free: 8.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.3154, allocations: 4 kB / 428.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005369/0.316, allocations: 177.8 kB / 428.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.3161, allocations: 128.5 kB / 428.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.3164, allocations: 292.9 kB / 429.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.3164, allocations: 29.7 kB / 429.2 MB, free: 7.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.3166, allocations: 124.3 kB / 429.3 MB, free: 7.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.3166, allocations: 23.98 kB / 429.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/0.3167, allocations: 33.7 kB / 429.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3169, allocations: 334.8 kB / 429.7 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.179e-05/0.317, allocations: 35.92 kB / 429.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.3171, allocations: 85.3 kB / 429.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.3173, allocations: 104.2 kB / 429.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3173, allocations: 0 / 429.9 MB, free: 6.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003551/0.3176, allocations: 149.4 kB / 430.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3177, allocations: 7.938 kB / 430.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3177, allocations: 4.094 kB / 430.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.3177, allocations: 7.938 kB / 430.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.245e-05/0.3178, allocations: 12 kB / 430.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3178, allocations: 0 / 430.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3179, allocations: 19.94 kB / 430.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.3179, allocations: 4 kB / 430.1 MB, free: 6.746 MB / 334.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.0002075/0.3181, allocations: 146.7 kB / 430.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.841e-05/0.3181, allocations: 19.86 kB / 430.3 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.3185, allocations: 111.4 kB / 430.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.3185, allocations: 8.125 kB / 430.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3185, allocations: 4 kB / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3185, allocations: 3.984 kB / 430.4 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.3188, allocations: 216.6 kB / 430.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3188, allocations: 3.938 kB / 430.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.607e-05/0.3188, allocations: 4 kB / 430.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3188, allocations: 0 / 430.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.3188, allocations: 7.984 kB / 430.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3188, allocations: 3.938 kB / 430.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.3188, allocations: 8 kB / 430.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003299/0.3192, allocations: 178.5 kB / 430.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.02e-05/0.3192, allocations: 11.91 kB / 430.8 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.855e-05/0.3193, allocations: 11.98 kB / 430.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-05/0.3194, allocations: 11.94 kB / 430.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.3195, allocations: 19.97 kB / 430.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.3195, allocations: 4 kB / 430.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002416/0.3197, allocations: 212.5 kB / 431.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3197, allocations: 0 / 431.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.32, allocations: 43.88 kB / 431.1 MB, free: 5.652 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.002178/0.3222, allocations: 1.023 MB / 432.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002845/0.3224, allocations: 87.89 kB / 432.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3224, allocations: 0 / 432.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.3226, allocations: 52.11 kB / 432.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.323, allocations: 58.11 kB / 432.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002892/0.3259, allocations: 2.153 MB / 434.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.3263, allocations: 0.7397 MB / 435.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.3264, allocations: 29.42 kB / 435.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.3265, allocations: 59.41 kB / 435.3 MB, free: 1.453 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3265, allocations: 7.938 kB / 435.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03569/0.3622, allocations: 5.317 MB / 440.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.63, allocations: 9.938 kB / 440.7 MB, free: 12.2 MB / 350.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.094111877959222]