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.001516/0.001516, allocations: 108.9 kB / 16.51 MB, free: 6.707 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.001751/0.001751, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.392/1.392, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009969/0.0009969, allocations: 40.94 kB / 300 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09907, allocations: 49.44 MB / 349.5 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004095/0.1032, allocations: 1.894 MB / 351.4 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.105, allocations: 1.009 MB / 352.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.1051, allocations: 3.938 kB / 352.4 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006647/0.1058, allocations: 155.7 kB / 352.6 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003251/0.1061, allocations: 111.6 kB / 352.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.1066, allocations: 162.9 kB / 352.8 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002405/0.1068, allocations: 195.4 kB / 353 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.107, allocations: 21.55 kB / 353 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.1071, allocations: 75.64 kB / 353.1 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.1073, allocations: 75.67 kB / 353.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.1073, allocations: 8 kB / 353.2 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.1074, allocations: 55.84 kB / 353.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.089e-05/0.1075, allocations: 39.89 kB / 353.3 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.85e-05/0.1076, allocations: 71.55 kB / 353.4 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.1079, allocations: 207.6 kB / 353.6 MB, free: 484 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1079, allocations: 3.984 kB / 353.6 MB, free: 480 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.108, allocations: 0 / 353.6 MB, free: 480 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.108, allocations: 3.938 kB / 353.6 MB, free: 476 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.0009018/0.1089, allocations: 0.5196 MB / 354.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1089, allocations: 8.031 kB / 354.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.109, allocations: 42.75 kB / 354.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.662e-05/0.109, allocations: 16.75 kB / 354.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1093, allocations: 262.6 kB / 354.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.1094, allocations: 4 kB / 354.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.1094, allocations: 8 kB / 354.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.1096, allocations: 121.9 kB / 354.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.1097, allocations: 11.94 kB / 354.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.1097, allocations: 4 kB / 354.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.1097, allocations: 0 / 354.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.1099, allocations: 51.91 kB / 354.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.1105, allocations: 0.6105 MB / 355.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.1108, allocations: 123.9 kB / 355.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.1109, allocations: 46.56 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.1109, allocations: 8 kB / 355.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.1112, allocations: 117.9 kB / 355.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.673e-06/0.1112, allocations: 4 kB / 355.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000466/0.1117, allocations: 173.4 kB / 355.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/0.1118, allocations: 132.5 kB / 355.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.1121, allocations: 292.8 kB / 356.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.1121, allocations: 29.7 kB / 356.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.1122, allocations: 124.3 kB / 356.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.365e-05/0.1122, allocations: 27.66 kB / 356.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.1123, allocations: 33.64 kB / 356.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1124, allocations: 338.9 kB / 356.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-05/0.1125, allocations: 31.98 kB / 356.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1126, allocations: 74 kB / 356.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.1128, allocations: 100.7 kB / 356.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1129, allocations: 0 / 356.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002986/0.1132, allocations: 149.3 kB / 357 MB, free: 12.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.1132, allocations: 4 kB / 357 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1132, allocations: 0 / 357 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1132, allocations: 8.094 kB / 357 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.1133, allocations: 19.92 kB / 357 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.1133, allocations: 0 / 357 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.1135, allocations: 23.77 kB / 357 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.1135, allocations: 11.98 kB / 357 MB, free: 12.62 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.0001478/0.1136, allocations: 149.6 kB / 357.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.521e-05/0.1137, allocations: 15.81 kB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.795e-05/0.1137, allocations: 25.7 kB / 357.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1138, allocations: 11.94 kB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.1138, allocations: 0 / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1138, allocations: 0 / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.114, allocations: 241.5 kB / 357.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.114, allocations: 0 / 357.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.044e-05/0.1141, allocations: 7.938 kB / 357.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1141, allocations: 0 / 357.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.1141, allocations: 8 kB / 357.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.1141, allocations: 3.938 kB / 357.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1141, allocations: 4 kB / 357.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.1145, allocations: 178.5 kB / 357.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.552e-05/0.1145, allocations: 92.86 kB / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.1146, allocations: 8 kB / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1147, allocations: 12.05 kB / 357.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.1148, allocations: 31.89 kB / 357.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.1148, allocations: 8 kB / 357.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002179/0.115, allocations: 208.5 kB / 358 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.115, allocations: 0 / 358 MB, free: 11.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000293/0.1153, allocations: 32 kB / 358.1 MB, free: 11.5 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.00148/0.1168, allocations: 1.035 MB / 359.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.1171, allocations: 99.84 kB / 359.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1171, allocations: 0 / 359.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.1173, allocations: 51.91 kB / 359.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.1176, allocations: 52.31 kB / 359.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.1204, allocations: 2.186 MB / 361.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.1208, allocations: 0.7361 MB / 362.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.1209, allocations: 17.55 kB / 362.2 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.121, allocations: 55.42 kB / 362.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.121, allocations: 0 / 362.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.1374, allocations: 4.712 MB / 367 MB, free: 2.656 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003233/0.1378, allocations: 236.3 kB / 367.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.04, allocations: 0 / 367.2 MB, free: 2.398 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