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.001234/0.001234, allocations: 106 kB / 16.62 MB, free: 6.812 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.001067/0.001067, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.353/1.353, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 42.86 kB / 300.2 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09236, allocations: 49.45 MB / 349.7 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003603/0.09601, allocations: 1.875 MB / 351.6 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.09791, allocations: 1.005 MB / 352.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.09811, allocations: 0 / 352.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008829/0.09901, allocations: 159.7 kB / 352.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004505/0.09948, allocations: 119.6 kB / 352.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006398/0.1001, allocations: 159 kB / 353 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.1005, allocations: 207.4 kB / 353.2 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1007, allocations: 25.55 kB / 353.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.1009, allocations: 87.62 kB / 353.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.1011, allocations: 87.67 kB / 353.4 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.1011, allocations: 11.98 kB / 353.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.1013, allocations: 55.92 kB / 353.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.092e-05/0.1014, allocations: 47.83 kB / 353.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1016, allocations: 79.53 kB / 353.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003734/0.1019, allocations: 207.7 kB / 353.8 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1019, allocations: 0 / 353.8 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.102, allocations: 4 kB / 353.8 MB, free: 340 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.102, allocations: 0 / 353.8 MB, free: 340 kB / 286.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.0009855/0.103, allocations: 0.5311 MB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.103, allocations: 8.031 kB / 354.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.1031, allocations: 38.75 kB / 354.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.366e-05/0.1031, allocations: 16.75 kB / 354.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.1034, allocations: 258.6 kB / 354.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.1034, allocations: 8 kB / 354.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.1035, allocations: 8 kB / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002502/0.1037, allocations: 117.9 kB / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1037, allocations: 0 / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.1038, allocations: 4 kB / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1038, allocations: 0 / 354.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.1039, allocations: 55.91 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007654/0.1047, allocations: 0.6065 MB / 355.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.105, allocations: 127.9 kB / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.1051, allocations: 46.56 kB / 355.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.1052, allocations: 4 kB / 355.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.1054, allocations: 121.8 kB / 355.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.1054, allocations: 0 / 355.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004786/0.1059, allocations: 177.4 kB / 355.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.106, allocations: 132.5 kB / 356 MB, free: 13.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.1063, allocations: 293 kB / 356.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.1063, allocations: 29.7 kB / 356.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/0.1064, allocations: 128.2 kB / 356.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.439e-05/0.1064, allocations: 31.7 kB / 356.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.1065, allocations: 37.7 kB / 356.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1066, allocations: 330.8 kB / 356.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.823e-05/0.1067, allocations: 27.98 kB / 356.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.1068, allocations: 85.36 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.107, allocations: 96.72 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1071, allocations: 4.031 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002776/0.1073, allocations: 149.2 kB / 357.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1074, allocations: 8 kB / 357.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.1074, allocations: 0 / 357.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1074, allocations: 4 kB / 357.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.211e-05/0.1075, allocations: 19.92 kB / 357.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.1075, allocations: 3.984 kB / 357.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1076, allocations: 19.89 kB / 357.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.1077, allocations: 8.094 kB / 357.3 MB, free: 12.49 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.0001417/0.1078, allocations: 157.6 kB / 357.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.516e-05/0.1078, allocations: 15.81 kB / 357.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.294e-05/0.1079, allocations: 25.7 kB / 357.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1079, allocations: 7.938 kB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.1079, allocations: 0 / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1079, allocations: 0 / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.1082, allocations: 237.6 kB / 357.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1082, allocations: 0 / 357.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.323e-05/0.1082, allocations: 11.94 kB / 357.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1082, allocations: 0 / 357.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.1083, allocations: 7.938 kB / 357.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.1083, allocations: 4.062 kB / 357.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1083, allocations: 4 kB / 357.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.1086, allocations: 174.5 kB / 357.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.322e-05/0.1087, allocations: 100.9 kB / 358 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.1087, allocations: 4 kB / 358 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.921e-05/0.1088, allocations: 11.92 kB / 358 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.527e-05/0.1089, allocations: 15.98 kB / 358 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.1089, allocations: 4 kB / 358 MB, free: 11.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001983/0.1091, allocations: 216.4 kB / 358.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1091, allocations: 0 / 358.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002767/0.1094, allocations: 39.98 kB / 358.3 MB, free: 11.37 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.001522/0.1109, allocations: 1.032 MB / 359.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.1112, allocations: 103.8 kB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1112, allocations: 0 / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.1114, allocations: 51.91 kB / 359.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.1118, allocations: 49.97 kB / 359.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.1144, allocations: 2.189 MB / 361.7 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.1147, allocations: 0.728 MB / 362.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.792e-05/0.1148, allocations: 29.52 kB / 362.5 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.1149, allocations: 55.42 kB / 362.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.115, allocations: 0 / 362.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01557/0.1305, allocations: 4.84 MB / 367.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.1308, allocations: 235.5 kB / 367.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.077, allocations: 3.938 kB / 367.6 MB, free: 2.137 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