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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007722/0.0007726, allocations: 92.03 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008325/0.0008327, allocations: 182.1 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.572/1.572, allocations: 223.3 MB / 241.6 MB, free: 228 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003067, allocations: 4 kB / 301.5 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 50.41 MB / 351.9 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00276/0.1212, allocations: 1.543 MB / 353.5 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.1233, allocations: 0.9784 MB / 354.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.1235, allocations: 3.938 kB / 354.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007995/0.1244, allocations: 159.7 kB / 354.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003623/0.1247, allocations: 107.6 kB / 354.7 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.1253, allocations: 163.3 kB / 354.9 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.1256, allocations: 203.4 kB / 355.1 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1258, allocations: 25.53 kB / 355.1 MB, free: 448 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.126, allocations: 71.64 kB / 355.2 MB, free: 376 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.1262, allocations: 79.67 kB / 355.3 MB, free: 296 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.1262, allocations: 4 kB / 355.3 MB, free: 292 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.1264, allocations: 43.98 kB / 355.3 MB, free: 248 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.527e-05/0.1265, allocations: 51.75 kB / 355.3 MB, free: 196 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.1266, allocations: 89.25 kB / 355.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004245/0.127, allocations: 207.6 kB / 355.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.127, allocations: 4 kB / 355.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.127, allocations: 0 / 355.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1271, allocations: 0 / 355.6 MB, free: 15.89 MB / 302.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.0009436/0.128, allocations: 0.5012 MB / 356.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.1281, allocations: 12.03 kB / 356.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.816e-05/0.1281, allocations: 42.62 kB / 356.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.661e-05/0.1282, allocations: 20.75 kB / 356.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.1286, allocations: 262.6 kB / 356.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.1286, allocations: 4 kB / 356.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.1287, allocations: 8 kB / 356.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.1289, allocations: 117.9 kB / 356.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.129, allocations: 0 / 356.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.129, allocations: 0 / 356.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.129, allocations: 7.984 kB / 356.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.1292, allocations: 55.91 kB / 356.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007923/0.13, allocations: 0.6065 MB / 357.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.1302, allocations: 127.9 kB / 357.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.1304, allocations: 46.56 kB / 357.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.1304, allocations: 4 kB / 357.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.1306, allocations: 133.8 kB / 357.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.864e-06/0.1307, allocations: 0 / 357.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004764/0.1311, allocations: 169.3 kB / 357.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.1312, allocations: 144.4 kB / 357.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.1316, allocations: 281 kB / 358.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.1316, allocations: 29.7 kB / 358.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/0.1317, allocations: 128.5 kB / 358.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.1317, allocations: 31.64 kB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.1318, allocations: 21.72 kB / 358.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1319, allocations: 330.8 kB / 358.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-05/0.132, allocations: 27.98 kB / 358.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.1321, allocations: 93.92 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.1323, allocations: 96.72 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1324, allocations: 0 / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003537/0.1327, allocations: 145.3 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1327, allocations: 7.938 kB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1328, allocations: 4 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1328, allocations: 0 / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.054e-05/0.1329, allocations: 19.94 kB / 359.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.1329, allocations: 7.984 kB / 359.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.133, allocations: 15.91 kB / 359.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.133, allocations: 8.094 kB / 359.1 MB, free: 12.07 MB / 302.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.0001481/0.1332, allocations: 153.6 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.975e-05/0.1332, allocations: 23.8 kB / 359.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.509e-05/0.1333, allocations: 17.72 kB / 359.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1333, allocations: 7.938 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.1333, allocations: 0 / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.1333, allocations: 7.984 kB / 359.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002401/0.1336, allocations: 241.4 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1336, allocations: 0 / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.019e-05/0.1336, allocations: 11.98 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1336, allocations: 4 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1337, allocations: 0 / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1337, allocations: 11.88 kB / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1337, allocations: 0 / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.134, allocations: 178.7 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.797e-05/0.1341, allocations: 104.8 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.1341, allocations: 8 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.1342, allocations: 15.92 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.1343, allocations: 15.98 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.1343, allocations: 4 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.1345, allocations: 208.5 kB / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1346, allocations: 4 kB / 360.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.1349, allocations: 43.98 kB / 360.1 MB, free: 10.93 MB / 302.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.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 (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.001521/0.1364, allocations: 1.026 MB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003158/0.1367, allocations: 95.78 kB / 361.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1367, allocations: 3.938 kB / 361.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.1369, allocations: 51.97 kB / 361.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.1373, allocations: 48.66 kB / 361.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.14, allocations: 2.203 MB / 363.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1404, allocations: 0.7322 MB / 364.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.451e-05/0.1405, allocations: 21.53 kB / 364.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.941e-05/0.1406, allocations: 59.41 kB / 364.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of SimCode: time 1.543e-06/0.1406, allocations: 0 / 364.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01739/0.158, allocations: 4.525 MB / 368.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.1582, allocations: 231.7 kB / 369.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/2.172, allocations: 0 / 369.1 MB, free: 2.027 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches