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.001365/0.001365, allocations: 113.1 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.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.001541/0.001541, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 8 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.002279/0.002279, allocations: 47.86 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3148, allocations: 53.37 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003868/0.3186, allocations: 1.864 MB / 433 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.3209, allocations: 1.206 MB / 434.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.321, allocations: 4 kB / 434.2 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007178/0.3217, allocations: 174.7 kB / 434.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005114/0.3222, allocations: 171.3 kB / 434.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.3227, allocations: 143.6 kB / 434.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003741/0.3231, allocations: 227.2 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.3232, allocations: 13.75 kB / 434.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.3233, allocations: 91.67 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.3235, allocations: 95.53 kB / 435.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.3235, allocations: 12 kB / 435.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.3237, allocations: 55.97 kB / 435.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.963e-05/0.3238, allocations: 51.83 kB / 435.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.3239, allocations: 75.48 kB / 435.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004073/0.3243, allocations: 236.7 kB / 435.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3243, allocations: 0 / 435.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3243, allocations: 0 / 435.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3243, allocations: 0 / 435.5 MB, free: 2.445 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.0009503/0.3253, allocations: 474.6 kB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3253, allocations: 12.03 kB / 436 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.549e-05/0.3254, allocations: 38.69 kB / 436 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.3254, allocations: 24.8 kB / 436.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.3258, allocations: 201.2 kB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.3258, allocations: 8.375 kB / 436.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.3258, allocations: 7.938 kB / 436.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.3261, allocations: 117.9 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3261, allocations: 0 / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3261, allocations: 8 kB / 436.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3261, allocations: 4 kB / 436.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.3263, allocations: 51.91 kB / 436.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007418/0.327, allocations: 0.5822 MB / 437 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.3273, allocations: 115.9 kB / 437.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.3274, allocations: 46.56 kB / 437.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.3274, allocations: 7.984 kB / 437.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.3276, allocations: 125.8 kB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3276, allocations: 0 / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004777/0.3281, allocations: 177.9 kB / 437.5 MB, free: 268 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.981e-05/0.3282, allocations: 136.6 kB / 437.6 MB, free: 100 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.3286, allocations: 301 kB / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.3286, allocations: 25.7 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.3288, allocations: 124.4 kB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.3288, allocations: 35.73 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.105e-05/0.3289, allocations: 33.7 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.329, allocations: 330.8 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.704e-05/0.3291, allocations: 27.98 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.3293, allocations: 85.92 kB / 438.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.3295, allocations: 96.25 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3295, allocations: 4 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000299/0.3298, allocations: 145.4 kB / 438.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3298, allocations: 4 kB / 438.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3298, allocations: 7.938 kB / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3298, allocations: 0 / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.181e-05/0.3299, allocations: 15.98 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3299, allocations: 0 / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.33, allocations: 27.95 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.3301, allocations: 8 kB / 438.9 MB, free: 14.78 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.0001641/0.3302, allocations: 146.5 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.3303, allocations: 27.86 kB / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.3305, allocations: 111.4 kB / 439.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3306, allocations: 4 kB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3306, allocations: 0 / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3306, allocations: 3.938 kB / 439.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.3308, allocations: 220.7 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3308, allocations: 4 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.19e-05/0.3309, allocations: 7.938 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3309, allocations: 0 / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3309, allocations: 8 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3309, allocations: 0 / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3309, allocations: 7.922 kB / 439.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.3312, allocations: 178.6 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.3313, allocations: 19.84 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.3313, allocations: 4 kB / 439.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.3314, allocations: 11.98 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/0.3315, allocations: 31.83 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.3315, allocations: 4 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.3317, allocations: 216.5 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3317, allocations: 4 kB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.332, allocations: 39.94 kB / 439.9 MB, free: 13.66 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.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.002311/0.3343, allocations: 1.021 MB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003027/0.3346, allocations: 95.83 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3346, allocations: 0 / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.3348, allocations: 43.92 kB / 441.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.3351, allocations: 54.47 kB / 441.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.3383, allocations: 2.186 MB / 443.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.3388, allocations: 0.7359 MB / 444 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.3389, allocations: 29.48 kB / 444.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.339, allocations: 59.41 kB / 444.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.339, allocations: 0 / 444.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03745/0.3764, allocations: 5.42 MB / 449.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.72, allocations: 10.3 kB / 449.5 MB, free: 4.074 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.335495776962489]