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.0009151/0.0009151, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 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.0009855/0.0009855, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.9053/0.9053, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] 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 1.813e-06/1.813e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.251e-05/2.433e-05, allocations: 5.375 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002421/0.002445, allocations: 1.822 MB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.003736, allocations: 1.122 MB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.976e-05/0.003826, allocations: 4 kB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005196/0.004345, allocations: 175.3 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.004636, allocations: 175.2 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.004904, allocations: 147.4 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.005122, allocations: 223.2 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.34e-05/0.005216, allocations: 5.812 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.005338, allocations: 123.6 kB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.005442, allocations: 83.78 kB / 328.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.005461, allocations: 8 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.00557, allocations: 63.89 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.112e-05/0.005631, allocations: 47.84 kB / 328.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.155e-05/0.005682, allocations: 43.84 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.005923, allocations: 231.2 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.005925, allocations: 0 / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.005926, allocations: 0 / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.00593, allocations: 3.938 kB / 328.8 MB, free: 11.67 MB / 298.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.000612/0.006542, allocations: 466.7 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.006578, allocations: 8.031 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.871e-05/0.006607, allocations: 46.67 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/0.006648, allocations: 20.8 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.006868, allocations: 200.9 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.006883, allocations: 8.375 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.006895, allocations: 4.375 kB / 329.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.007063, allocations: 117.3 kB / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.00707, allocations: 0 / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.00708, allocations: 0 / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.007084, allocations: 8 kB / 329.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.518e-05/0.007179, allocations: 59.89 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.007635, allocations: 0.555 MB / 330.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.007799, allocations: 127.9 kB / 330.4 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.977e-05/0.007859, allocations: 50.56 kB / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.007876, allocations: 0 / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001531/0.008029, allocations: 125.9 kB / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.00803, allocations: 0 / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002877/0.008318, allocations: 181.4 kB / 330.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.008362, allocations: 106.8 kB / 330.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.00857, allocations: 301.8 kB / 331.2 MB, free: 9.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.008583, allocations: 25.7 kB / 331.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.008645, allocations: 124.4 kB / 331.3 MB, free: 8.922 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.008675, allocations: 39.8 kB / 331.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.956e-05/0.008714, allocations: 29.7 kB / 331.4 MB, free: 8.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.435e-05/0.008798, allocations: 346.8 kB / 331.7 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.33e-05/0.008852, allocations: 31.97 kB / 331.7 MB, free: 8.469 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.466e-05/0.008936, allocations: 106.8 kB / 331.8 MB, free: 8.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.009046, allocations: 100.7 kB / 331.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.009048, allocations: 0 / 331.9 MB, free: 8.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001592/0.009207, allocations: 153.5 kB / 332.1 MB, free: 8.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.009218, allocations: 4 kB / 332.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.009223, allocations: 4 kB / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.009234, allocations: 0 / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.413e-05/0.009288, allocations: 12 kB / 332.1 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.009293, allocations: 3.984 kB / 332.1 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.707e-05/0.00935, allocations: 15.92 kB / 332.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.009359, allocations: 12 kB / 332.1 MB, free: 8.02 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 8.751e-05/0.009446, allocations: 146.3 kB / 332.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.009469, allocations: 27.92 kB / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.009617, allocations: 115.4 kB / 332.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.00962, allocations: 4 kB / 332.4 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.009624, allocations: 0 / 332.4 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.009627, allocations: 0 / 332.4 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.009772, allocations: 212.5 kB / 332.6 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.009774, allocations: 0 / 332.6 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.849e-05/0.009792, allocations: 7.938 kB / 332.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.009794, allocations: 4 kB / 332.6 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.009808, allocations: 4 kB / 332.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.009811, allocations: 8.125 kB / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.009812, allocations: 4 kB / 332.7 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.009989, allocations: 193.9 kB / 332.9 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.01001, allocations: 19.86 kB / 332.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.01003, allocations: 8 kB / 332.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.683e-05/0.01008, allocations: 7.984 kB / 332.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.01012, allocations: 19.97 kB / 332.9 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.01014, allocations: 4 kB / 332.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001388/0.01027, allocations: 221.2 kB / 333.1 MB, free: 6.965 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01027, allocations: 4 kB / 333.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001806/0.01046, allocations: 43.86 kB / 333.2 MB, free: 6.918 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.0009606/0.01142, allocations: 1.048 MB / 334.2 MB, free: 6.016 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.01159, allocations: 91.91 kB / 334.3 MB, free: 5.926 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01159, allocations: 4 kB / 334.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.486e-05/0.01167, allocations: 56.16 kB / 334.4 MB, free: 5.867 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.01189, allocations: 57.7 kB / 334.4 MB, free: 5.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.01357, allocations: 2.215 MB / 336.6 MB, free: 3.477 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.666e-05/0.01365, allocations: 127.6 kB / 336.8 MB, free: 3.328 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.947e-05/0.01371, allocations: 25.62 kB / 336.8 MB, free: 3.305 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.01379, allocations: 68.41 kB / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01379, allocations: 0 / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.03029, allocations: 6.1 MB / 343 MB, free: 13.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.831/6.861, allocations: 10.81 kB / 343 MB, free: 13.2 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/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: 8.559485630132258]