Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000857/0.000857, allocations: 171.2 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.277/1.277, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006795/0.0006796, allocations: 85.44 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.000291, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1862, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001599/0.1878, allocations: 1.494 MB / 376.7 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.1889, allocations: 0.8771 MB / 377.5 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.573e-05/0.189, allocations: 6 kB / 377.6 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005235/0.1896, allocations: 149.9 kB / 377.7 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.1898, allocations: 97.97 kB / 377.8 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.1901, allocations: 145.3 kB / 377.9 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.1904, allocations: 182.3 kB / 378.1 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.1905, allocations: 20.53 kB / 378.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.1906, allocations: 80.31 kB / 378.2 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.1907, allocations: 75.31 kB / 378.3 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.1908, allocations: 4.219 kB / 378.3 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.1909, allocations: 46.91 kB / 378.3 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.352e-05/0.191, allocations: 46.48 kB / 378.4 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.182e-05/0.1911, allocations: 86.41 kB / 378.5 MB, free: 43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.1913, allocations: 160.7 kB / 378.6 MB, free: 42.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1913, allocations: 0 / 378.6 MB, free: 42.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1913, allocations: 0 / 378.6 MB, free: 42.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.1913, allocations: 0.9688 kB / 378.6 MB, free: 42.9 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.0006823/0.192, allocations: 0.5063 MB / 379.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.192, allocations: 9.375 kB / 379.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.1921, allocations: 33.44 kB / 379.2 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.217e-05/0.1921, allocations: 24.56 kB / 379.2 MB, free: 42.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.1924, allocations: 265.2 kB / 379.5 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.1924, allocations: 3.969 kB / 379.5 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.1924, allocations: 11.72 kB / 379.5 MB, free: 42.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.1926, allocations: 118.9 kB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1926, allocations: 0 / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.1927, allocations: 0.9375 kB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1927, allocations: 1.969 kB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.1928, allocations: 55.75 kB / 379.6 MB, free: 41.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.1933, allocations: 0.5993 MB / 380.2 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.1935, allocations: 124.9 kB / 380.4 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.99e-05/0.1936, allocations: 53.53 kB / 380.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1936, allocations: 2.594 kB / 380.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.1938, allocations: 124.3 kB / 380.5 MB, free: 41.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.563e-06/0.1938, allocations: 0 / 380.5 MB, free: 41.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004014/0.1942, allocations: 171.5 kB / 380.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.1943, allocations: 138.8 kB / 380.8 MB, free: 40.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.1945, allocations: 289.2 kB / 381.1 MB, free: 40.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.1945, allocations: 31.89 kB / 381.2 MB, free: 40.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.242e-05/0.1946, allocations: 125.4 kB / 381.3 MB, free: 40.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.1946, allocations: 32.45 kB / 381.3 MB, free: 40.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.1946, allocations: 0 / 381.3 MB, free: 40.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.938e-05/0.1947, allocations: 332.3 kB / 381.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.098e-05/0.1948, allocations: 33.52 kB / 381.7 MB, free: 40.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.618e-05/0.1949, allocations: 79.28 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.195, allocations: 105.4 kB / 381.9 MB, free: 39.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1951, allocations: 3.969 kB / 381.9 MB, free: 39.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002307/0.1953, allocations: 144.1 kB / 382 MB, free: 39.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.1953, allocations: 7.75 kB / 382 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1953, allocations: 1.375 kB / 382 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1953, allocations: 9.344 kB / 382 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.698e-05/0.1954, allocations: 15.78 kB / 382 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.1954, allocations: 2.312 kB / 382 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1955, allocations: 26.27 kB / 382.1 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.1956, allocations: 9.594 kB / 382.1 MB, free: 39.8 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.353e-05/0.1957, allocations: 148.9 kB / 382.2 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.1957, allocations: 25.88 kB / 382.2 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.789e-05/0.1958, allocations: 25.73 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1958, allocations: 1.125 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1958, allocations: 1.312 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1958, allocations: 5.188 kB / 382.3 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001601/0.1959, allocations: 246.9 kB / 382.5 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.196, allocations: 1.406 kB / 382.5 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.597e-05/0.196, allocations: 4.688 kB / 382.5 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.196, allocations: 1.344 kB / 382.5 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.196, allocations: 6.344 kB / 382.5 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.196, allocations: 5.703 kB / 382.5 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.196, allocations: 0 / 382.5 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002488/0.1963, allocations: 191.8 kB / 382.7 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.99e-05/0.1963, allocations: 92.36 kB / 382.8 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.1964, allocations: 9.391 kB / 382.8 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1965, allocations: 14.61 kB / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.1965, allocations: 17.89 kB / 382.9 MB, free: 39.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.1965, allocations: 8.156 kB / 382.9 MB, free: 39.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001601/0.1967, allocations: 212.7 kB / 383.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1967, allocations: 0 / 383.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002421/0.197, allocations: 34.48 kB / 383.1 MB, free: 38.94 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001069/0.198, allocations: 1.022 MB / 384.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.1983, allocations: 89.52 kB / 384.2 MB, free: 38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1983, allocations: 4 kB / 384.2 MB, free: 37.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.1984, allocations: 56.39 kB / 384.3 MB, free: 37.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1988, allocations: 58.17 kB / 384.3 MB, free: 37.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.2002, allocations: 1.171 MB / 385.5 MB, free: 37.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.2004, allocations: 0.7359 MB / 386.2 MB, free: 36.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.058e-05/0.2005, allocations: 55.73 kB / 386.3 MB, free: 36.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2005, allocations: 0 / 386.3 MB, free: 36.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.981/3.182, allocations: 3.359 MB / 389.6 MB, free: 33.68 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches