Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001565/0.001565, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001956/0.001956, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 230.5 MB / 257.4 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002133/0.002133, allocations: 67.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4341/0.4362, allocations: 53.39 MB / 431.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00438/0.4406, allocations: 1.828 MB / 433 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.4428, allocations: 1.118 MB / 434.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.4429, allocations: 0 / 434.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007743/0.4436, allocations: 171.5 kB / 434.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004922/0.4441, allocations: 171.3 kB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004562/0.4446, allocations: 147.6 kB / 434.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003315/0.4449, allocations: 215.4 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.4451, allocations: 13.75 kB / 434.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.4452, allocations: 95.56 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.4454, allocations: 87.66 kB / 435 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.4454, allocations: 8 kB / 435 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.4456, allocations: 59.95 kB / 435 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.49e-05/0.4457, allocations: 51.78 kB / 435.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.9e-05/0.4458, allocations: 63.59 kB / 435.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000382/0.4461, allocations: 236.7 kB / 435.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4462, allocations: 0 / 435.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4462, allocations: 0 / 435.4 MB, free: 2.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.4462, allocations: 0 / 435.4 MB, free: 2.18 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.0009843/0.4471, allocations: 466.7 kB / 435.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.4472, allocations: 19.92 kB / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.178e-05/0.4472, allocations: 34.75 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.36e-05/0.4473, allocations: 28.8 kB / 435.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.4476, allocations: 201.2 kB / 436.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.4476, allocations: 4.375 kB / 436.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.4477, allocations: 8.375 kB / 436.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.4479, allocations: 117.1 kB / 436.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.4479, allocations: 0 / 436.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.4479, allocations: 4 kB / 436.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.4479, allocations: 3.984 kB / 436.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.4481, allocations: 51.91 kB / 436.3 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000718/0.4488, allocations: 0.5745 MB / 436.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.4491, allocations: 119.9 kB / 437 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.4492, allocations: 58.48 kB / 437 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.4492, allocations: 4 kB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.4495, allocations: 121.8 kB / 437.2 MB, free: 192 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.4495, allocations: 0 / 437.2 MB, free: 192 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004564/0.4499, allocations: 181.5 kB / 437.3 MB, free: 4 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.45, allocations: 110.8 kB / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003451/0.4504, allocations: 293.1 kB / 437.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.4504, allocations: 25.7 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.4505, allocations: 132.3 kB / 437.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.11e-05/0.4505, allocations: 27.75 kB / 437.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.379e-05/0.4506, allocations: 37.64 kB / 437.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4508, allocations: 338.8 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.912e-05/0.4509, allocations: 35.92 kB / 438.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.451, allocations: 102.8 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001845/0.4512, allocations: 100.8 kB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4512, allocations: 0 / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002735/0.4515, allocations: 149.4 kB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.4515, allocations: 8 kB / 438.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.4515, allocations: 0 / 438.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.4515, allocations: 4.094 kB / 438.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.543e-05/0.4516, allocations: 15.98 kB / 438.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4516, allocations: 4 kB / 438.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.4517, allocations: 15.92 kB / 438.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.4517, allocations: 8 kB / 438.7 MB, free: 14.52 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.0001607/0.4519, allocations: 149.7 kB / 438.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-05/0.4519, allocations: 19.86 kB / 438.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.4522, allocations: 119.4 kB / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.4522, allocations: 0 / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.4522, allocations: 8 kB / 439 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4522, allocations: 0 / 439 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.4524, allocations: 204.5 kB / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4524, allocations: 0 / 439.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.342e-05/0.4525, allocations: 8 kB / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4525, allocations: 0 / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.4525, allocations: 11.98 kB / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.4525, allocations: 0 / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.4525, allocations: 0 / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003383/0.4528, allocations: 193.9 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.4529, allocations: 35.78 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.4529, allocations: 128 / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.453, allocations: 19.98 kB / 439.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.4531, allocations: 7.984 kB / 439.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.4531, allocations: 15.88 kB / 439.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.4534, allocations: 224.4 kB / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4534, allocations: 0 / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.4536, allocations: 32 kB / 439.7 MB, free: 13.41 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 (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.002396/0.456, allocations: 1.052 MB / 440.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003424/0.4564, allocations: 95.89 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4564, allocations: 0 / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.4565, allocations: 47.92 kB / 440.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.4569, allocations: 64.62 kB / 441 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.46, allocations: 2.204 MB / 443.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.4601, allocations: 119.6 kB / 443.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.968e-05/0.4602, allocations: 29.42 kB / 443.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.4603, allocations: 59.41 kB / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4603, allocations: 0 / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08924/0.5495, allocations: 5.952 MB / 449.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.22, allocations: 10.38 kB / 449.4 MB, free: 3.812 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.17035969113931]