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.0008517/0.0008517, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000877/0.000877, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8923/0.8923, allocations: 173.4 MB / 200.4 MB, free: 9.414 MB / 186.7 MB " [Timeout remaining time 179] 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 1.442e-06/1.442e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.982e-05/2.126e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002217/0.002238, allocations: 1.778 MB / 320.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.003409, allocations: 0.9895 MB / 321.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.653e-05/0.003496, allocations: 0 / 321.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000545/0.004041, allocations: 171.3 kB / 321.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.004253, allocations: 139.3 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.004541, allocations: 174.1 kB / 321.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.004744, allocations: 211.3 kB / 321.9 MB, free: 2.883 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.004851, allocations: 25.72 kB / 321.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.004966, allocations: 111.7 kB / 322 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.005068, allocations: 83.77 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.005091, allocations: 12 kB / 322.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.005199, allocations: 55.97 kB / 322.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.959e-05/0.005269, allocations: 51.77 kB / 322.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.902e-05/0.005328, allocations: 43.86 kB / 322.2 MB, free: 2.504 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.005599, allocations: 219.3 kB / 322.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.005602, allocations: 7.938 kB / 322.5 MB, free: 2.281 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.005603, allocations: 0 / 322.5 MB, free: 2.281 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.005609, allocations: 0 / 322.5 MB, free: 2.281 MB / 282.7 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.0006542/0.006263, allocations: 462 kB / 322.9 MB, free: 1.797 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.006302, allocations: 8.922 kB / 322.9 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.956e-05/0.006332, allocations: 38.73 kB / 323 MB, free: 1.742 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.006372, allocations: 24.78 kB / 323 MB, free: 1.719 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.00661, allocations: 200.9 kB / 323.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.006626, allocations: 8.125 kB / 323.2 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.006638, allocations: 4 kB / 323.2 MB, free: 1.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.006815, allocations: 115.8 kB / 323.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.006822, allocations: 4 kB / 323.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.006832, allocations: 0 / 323.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.006837, allocations: 0 / 323.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.276e-05/0.006929, allocations: 55.91 kB / 323.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004986/0.007428, allocations: 0.5627 MB / 323.9 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.007602, allocations: 123.9 kB / 324 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.969e-05/0.007672, allocations: 46.56 kB / 324.1 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.007697, allocations: 0 / 324.1 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/0.007855, allocations: 121.9 kB / 324.2 MB, free: 340 kB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.007856, allocations: 4 kB / 324.2 MB, free: 336 kB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003133/0.00817, allocations: 177.5 kB / 324.4 MB, free: 152 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.008228, allocations: 110.8 kB / 324.5 MB, free: 16 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.008441, allocations: 289.6 kB / 324.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.008458, allocations: 29.7 kB / 324.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.005e-05/0.008528, allocations: 128.3 kB / 324.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.008554, allocations: 31.69 kB / 325 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/0.008597, allocations: 33.7 kB / 325 MB, free: 15.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.00869, allocations: 334.8 kB / 325.3 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.951e-05/0.00875, allocations: 31.98 kB / 325.4 MB, free: 15.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.573e-05/0.008836, allocations: 110.1 kB / 325.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.008949, allocations: 104.7 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.008952, allocations: 0 / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001633/0.009115, allocations: 141.4 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.009128, allocations: 8 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.009134, allocations: 4.125 kB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.009147, allocations: 4 kB / 325.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.316e-05/0.00921, allocations: 15.98 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.009216, allocations: 3.938 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.914e-05/0.009275, allocations: 27.86 kB / 325.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.009283, allocations: 4 kB / 325.8 MB, free: 14.66 MB / 298.7 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 9.389e-05/0.009377, allocations: 153.6 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.009399, allocations: 19.86 kB / 325.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.009552, allocations: 111.4 kB / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.009558, allocations: 4 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.009563, allocations: 4 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.009567, allocations: 3.938 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.009718, allocations: 196.7 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.00972, allocations: 0 / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.076e-05/0.009741, allocations: 11.94 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.009742, allocations: 4 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.00975, allocations: 0 / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.009754, allocations: 4 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.009755, allocations: 128 / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.009932, allocations: 202.6 kB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.295e-05/0.009955, allocations: 23.8 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.009974, allocations: 8 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.303e-05/0.01002, allocations: 7.984 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.01007, allocations: 23.91 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.01008, allocations: 4 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001294/0.01021, allocations: 213.2 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01021, allocations: 0 / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001675/0.01038, allocations: 32 kB / 326.8 MB, free: 13.57 MB / 298.7 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.001036/0.01141, allocations: 1.066 MB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.0116, allocations: 87.91 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.0116, allocations: 0 / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.323e-05/0.01167, allocations: 55.91 kB / 328 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.01189, allocations: 54.81 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.01355, allocations: 2.18 MB / 330.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.24e-05/0.01363, allocations: 123.5 kB / 330.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.622e-05/0.01368, allocations: 29.58 kB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.01376, allocations: 60.47 kB / 330.4 MB, free: 9.945 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01376, allocations: 3.938 kB / 330.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.03318, allocations: 6.003 MB / 336.4 MB, free: 3.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.803/6.836, allocations: 3.938 kB / 336.4 MB, free: 3.992 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/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: 8.53328968025744]